Interface WebSocketClientExtensionHandshaker

    • Method Detail

      • newRequestData

        WebSocketExtensionData newRequestData()
        Return extension configuration to submit to the server.
        Returns:
        the desired extension configuration.
      • handshakeExtension

        WebSocketClientExtension handshakeExtension​(WebSocketExtensionData extensionData)
        Handshake based on server response. It should always succeed because server response should be a request acknowledge.
        Parameters:
        extensionData - the extension configuration sent by the server.
        Returns:
        an initialized extension if handshake phase succeed or null if failed.