Class WebSocketServerHandshaker

    • Field Detail

      • SUB_PROTOCOL_WILDCARD

        public static final java.lang.String SUB_PROTOCOL_WILDCARD
        Use this as wildcard to support all requested sub-protocols
        See Also:
        Constant Field Values
    • Constructor Detail

      • WebSocketServerHandshaker

        protected WebSocketServerHandshaker​(WebSocketVersion version,
                                            java.lang.String uri,
                                            java.lang.String subprotocols,
                                            int maxFramePayloadLength)
        Constructor specifying the destination web socket location
        Parameters:
        version - the protocol version
        uri - URL for web socket communications. e.g "ws://myhost.com/mypath". Subsequent web socket frames will be sent to this URL.
        subprotocols - CSV of supported protocols. Null if sub protocols not supported.
        maxFramePayloadLength - Maximum length of a frame's payload
      • WebSocketServerHandshaker

        protected WebSocketServerHandshaker​(WebSocketVersion version,
                                            java.lang.String uri,
                                            java.lang.String subprotocols,
                                            WebSocketDecoderConfig decoderConfig)
        Constructor specifying the destination web socket location
        Parameters:
        version - the protocol version
        uri - URL for web socket communications. e.g "ws://myhost.com/mypath". Subsequent web socket frames will be sent to this URL.
        subprotocols - CSV of supported protocols. Null if sub protocols not supported.
        decoderConfig - Frames decoder configuration.