Skip to content

Commit

Permalink
WebSocketClientHandshaker: add public accessors for parameters (#13009)
Browse files Browse the repository at this point in the history
Motivation:

Websocket client & server handshakers may be extended with custom frame encoder / decoder,
however client handshaker parameters are private so cant be accessed by custom frame encoder / decoder.

Modifications:

WebSocketClientHandshaker: add public accessors for parameters.

Result:

Custom frame encoder / decoder may be provided with websocket client handshaker parameters
  • Loading branch information
mostroverkhov committed Nov 21, 2022
1 parent 798ca52 commit d24defc
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -346,4 +346,15 @@ public WebSocketClientHandshaker13 setForceCloseTimeoutMillis(long forceCloseTim
return this;
}

public boolean isAllowExtensions() {
return allowExtensions;
}

public boolean isPerformMasking() {
return performMasking;
}

public boolean isAllowMaskMismatch() {
return allowMaskMismatch;
}
}

0 comments on commit d24defc

Please sign in to comment.