TsgcWSPServer_WebRTC › Events
Events you can handle, grouped by purpose, followed by the full alphabetical list.
| Name | Description |
|---|---|
| OnConnect | Fires on the server once a peer finishes the WebSocket handshake and attaches to the WebRTC signalling subprotocol. |
| OnDisconnect | Fires on the server when a signalling peer closes its transport or the server drops it. |
| OnError | Fires when the server detects a transport or protocol-level error on a signalling connection. |
| OnException | Fires when a Delphi exception is raised inside the server's worker threads or user event handlers. |
| Name | Description |
|---|---|
| OnMessage | Fires for incoming text frames that the signalling decoder did not route to a dedicated subscription or WebRTC relay event. |
| OnBinary | Fires when a peer sends a binary WebSocket frame that is not part of the JSON-text signalling protocol. |
| OnFragmented | Fires for each fragment of a multi-frame WebSocket message received from a peer before the payload is reassembled. |
| OnRawMessage | Fires before signalling decoding, letting the server inspect every incoming text frame and optionally suppress further processing. |
| Name | Description |
|---|---|
| OnBeforeSubscription | Fires when a peer asks to join a signalling channel, giving the server the chance to accept or reject the subscription. |
| OnSubscription | Fires after a peer subscription has been accepted and the signalling server has registered the peer on the channel. |
| OnUnSubscription | Fires when a peer leaves a signalling channel and the server has removed it from the subscriber list. |
| Name | Description |
|---|---|
| OnBeforeSubscription | Fires when a peer asks to join a signalling channel, giving the server the chance to accept or reject the subscription. |
| OnBinary | Fires when a peer sends a binary WebSocket frame that is not part of the JSON-text signalling protocol. |
| OnConnect | Fires on the server once a peer finishes the WebSocket handshake and attaches to the WebRTC signalling subprotocol. |
| OnDisconnect | Fires on the server when a signalling peer closes its transport or the server drops it. |
| OnError | Fires when the server detects a transport or protocol-level error on a signalling connection. |
| OnException | Fires when a Delphi exception is raised inside the server's worker threads or user event handlers. |
| OnFragmented | Fires for each fragment of a multi-frame WebSocket message received from a peer before the payload is reassembled. |
| OnMessage | Fires for incoming text frames that the signalling decoder did not route to a dedicated subscription or WebRTC relay event. |
| OnRawMessage | Fires before signalling decoding, letting the server inspect every incoming text frame and optionally suppress further processing. |
| OnSubscription | Fires after a peer subscription has been accepted and the signalling server has registered the peer on the channel. |
| OnUnSubscription | Fires when a peer leaves a signalling channel and the server has removed it from the subscriber list. |