public interface ClientHandshakeFuture extends WebSocketConnectorFuture
| Modifier and Type | Method and Description |
|---|---|
void |
notifyError(Throwable throwable,
HttpCarbonResponse response)
Notify any error occurred during the handshake.
|
void |
notifySuccess(WebSocketConnection webSocketConnection,
HttpCarbonResponse response)
Notify the success of the WebSocket handshake.
|
void |
setClientHandshakeListener(ClientHandshakeListener serverHandshakeListener)
Set the listener for WebSocket handshake.
|
notifyWebSocketIdleTimeout, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, setWebSocketConnectorListenervoid setClientHandshakeListener(ClientHandshakeListener serverHandshakeListener)
serverHandshakeListener - Listener for WebSocket handshake.void notifySuccess(WebSocketConnection webSocketConnection, HttpCarbonResponse response)
webSocketConnection - WebSocketConnection for the successful connection.response - HttpCarbonResponse received from server.void notifyError(Throwable throwable, HttpCarbonResponse response)
throwable - error occurred during handshake.response - HttpCarbonResponse received from server or null if error occurred before response is
received.Copyright © 2021 WSO2. All rights reserved.