public interface WebSocketConnectionHandler
WebSocket| Modifier and Type | Method and Description |
|---|---|
String |
getSocketId(WebSocketRequest request)
Generates the id of the socket that will be created from the given
request |
void |
onClose(WebSocket socket,
WebSocketRequest request,
WebSocketCloseCode closeCode,
String reason)
Invoked when the
socket is closed. |
void |
onConnect(WebSocket socket,
WebSocketRequest request)
Invoked when the
socket is established |
String getSocketId(WebSocketRequest request)
requestrequest - the inbound request to open a WebSocketvoid onConnect(WebSocket socket, WebSocketRequest request) throws WebSocketConnectionRejectedException
socket is establishedsocket - the established WebSocketrequest - the inbound requestWebSocketConnectionRejectedException - if the connection is refused by the owning servervoid onClose(WebSocket socket, WebSocketRequest request, WebSocketCloseCode closeCode, String reason)
socket is closed. This method will be invoked whether the socket was closed locally or remotely.Copyright © 2003–2025 MuleSoft, Inc.. All rights reserved.