TsgcWSPServer_E2EE › Events
TsgcWSPServer_E2EE Events
Events you can handle, grouped by purpose, followed by the full alphabetical list.
Lifecycle
| Name | Description |
| OnConnect | Fired when a client WebSocket connection is established. |
| OnDisconnect | Fired when a client WebSocket connection is closed. |
| OnError | Fired when a protocol-level error is reported by a connection. |
| OnException | Fired when an unhandled exception is raised while processing a connection. |
| OnRawMessage | Fired with the raw bytes received on the WebSocket before subprotocol parsing. |
Messaging
| Name | Description |
| OnMessage | Fired when a text WebSocket message is received on this subprotocol channel. |
E2EE
| Name | Description |
| OnE2EEMessageIn | Fired when an encrypted E2EE packet is received from a client (before routing). |
| OnE2EEMessageOut | Fired just before an encrypted E2EE packet is relayed to a destination client. |
All Events (alphabetical)
| Name | Description |
| OnConnect | Fired when a client WebSocket connection is established. |
| OnDisconnect | Fired when a client WebSocket connection is closed. |
| OnE2EEMessageIn | Fired when an encrypted E2EE packet is received from a client (before routing). |
| OnE2EEMessageOut | Fired just before an encrypted E2EE packet is relayed to a destination client. |
| OnError | Fired when a protocol-level error is reported by a connection. |
| OnException | Fired when an unhandled exception is raised while processing a connection. |
| OnMessage | Fired when a text WebSocket message is received on this subprotocol channel. |
| OnRawMessage | Fired with the raw bytes received on the WebSocket before subprotocol parsing. |