TsgcWSPServer_E2EE › Events

TsgcWSPServer_E2EE Events

Events you can handle, grouped by purpose, followed by the full alphabetical list.

Lifecycle

NameDescription
OnConnectFired when a client WebSocket connection is established.
OnDisconnectFired when a client WebSocket connection is closed.
OnErrorFired when a protocol-level error is reported by a connection.
OnExceptionFired when an unhandled exception is raised while processing a connection.
OnRawMessageFired with the raw bytes received on the WebSocket before subprotocol parsing.

Messaging

NameDescription
OnMessageFired when a text WebSocket message is received on this subprotocol channel.

E2EE

NameDescription
OnE2EEMessageInFired when an encrypted E2EE packet is received from a client (before routing).
OnE2EEMessageOutFired just before an encrypted E2EE packet is relayed to a destination client.

All Events (alphabetical)

NameDescription
OnConnectFired when a client WebSocket connection is established.
OnDisconnectFired when a client WebSocket connection is closed.
OnE2EEMessageInFired when an encrypted E2EE packet is received from a client (before routing).
OnE2EEMessageOutFired just before an encrypted E2EE packet is relayed to a destination client.
OnErrorFired when a protocol-level error is reported by a connection.
OnExceptionFired when an unhandled exception is raised while processing a connection.
OnMessageFired when a text WebSocket message is received on this subprotocol channel.
OnRawMessageFired with the raw bytes received on the WebSocket before subprotocol parsing.