Class WebSocketClientHandshaker00

    • Constructor Detail

      • WebSocketClientHandshaker00

        public WebSocketClientHandshaker00​(java.net.URI webSocketURL,
                                           WebSocketVersion version,
                                           java.lang.String subprotocol,
                                           HttpHeaders customHeaders,
                                           int maxFramePayloadLength)
        Creates a new instance with the specified destination WebSocket location and version to initiate.
        Parameters:
        webSocketURL - URL for web socket communications. e.g "ws://myhost.com/mypath". Subsequent web socket frames will be sent to this URL.
        version - Version of web socket specification to use to connect to the server
        subprotocol - Sub protocol request sent to the server.
        customHeaders - Map of custom headers to add to the client request
        maxFramePayloadLength - Maximum length of a frame's payload
      • WebSocketClientHandshaker00

        public WebSocketClientHandshaker00​(java.net.URI webSocketURL,
                                           WebSocketVersion version,
                                           java.lang.String subprotocol,
                                           HttpHeaders customHeaders,
                                           int maxFramePayloadLength,
                                           long forceCloseTimeoutMillis)
        Creates a new instance with the specified destination WebSocket location and version to initiate.
        Parameters:
        webSocketURL - URL for web socket communications. e.g "ws://myhost.com/mypath". Subsequent web socket frames will be sent to this URL.
        version - Version of web socket specification to use to connect to the server
        subprotocol - Sub protocol request sent to the server.
        customHeaders - Map of custom headers to add to the client request
        maxFramePayloadLength - Maximum length of a frame's payload
        forceCloseTimeoutMillis - Close the connection if it was not closed by the server after timeout specified