Class: WebSocketClientEventHandlerAdapter

WebSocketClientEventHandlerAdapter()

Convenience adapter for handling KDC WebSocket client events. Provides empty implementations of the WebSocket client event callbacks. Applications may extend this class and override only the methods they need. Event callbacks are invoked by WebSocketClient during connection, transmission, and reception operations.

Constructor

new WebSocketClientEventHandlerAdapter()

Methods

onConnectionClosed(client) → {void}

Called when the WebSocket connection is closed.
Parameters:
Name Type Description
client WebSocketClient The disconnected WebSocket client.
Returns:
Type
void

onConnectionEstablished(client) → {void}

Called when the WebSocket connection is established.
Parameters:
Name Type Description
client WebSocketClient The connected WebSocket client.
Returns:
Type
void

onReceivedAgent(agent) → {void}

Called when an Agent is received from the server.
Parameters:
Name Type Description
agent Agent The received Agent.
Returns:
Type
void

onReceivedReply(reply) → {void}

Called when a Reply is received from the server. This callback is invoked for received Replies, including those associated with synchronous requests.
Parameters:
Name Type Description
reply Reply The received Reply.
Returns:
Type
void

onSendingAsyncAgent(agent) → {void}

Called before an asynchronous Agent is transmitted.
Parameters:
Name Type Description
agent Agent The Agent being sent.
Returns:
Type
void

onSendingSyncAgent(agent) → {void}

Called before a synchronous Agent is transmitted.
Parameters:
Name Type Description
agent Agent The Agent being sent.
Returns:
Type
void