TsgcWSPClient_sgc › Events
Events you can handle, grouped by purpose, followed by the full alphabetical list.
| Name | Description |
|---|---|
| OnConnect | Fires after the WebSocket handshake completes and the sgc subprotocol is initialized. |
| OnDisconnect | Fires when the connection is closed, reporting the close code. |
| OnError | Fires when the server or transport reports an error string. |
| OnException | Fires when an unhandled exception occurs on the connection. |
| OnSession | Fires after a successful connection or GetSession request with the assigned session Guid. |
| Name | Description |
|---|---|
| OnMessage | Fires when a plain text message arrives on the sgc channel. |
| OnBinary | Fires when a binary frame arrives; payload is delivered as a TMemoryStream. |
| OnFragmented | Fires for fragmented WebSocket frames, exposing OpCode and continuation flag. |
| OnRawMessage | Fires before the component parses a message; set Handled to True to suppress default processing. |
| Name | Description |
|---|---|
| OnSubscription | Fires when the client has been subscribed to a channel. |
| OnUnSubscription | Fires when the client has been unsubscribed from a channel. |
| OnEvent | Fires when a message is received on a subscribed channel. |
| OnAcknowledgment | Fires when the server acknowledges receipt of a QoS 1 or 2 message. |
| Name | Description |
|---|---|
| OnRPCResult | Fires when the server returns a successful RPC response. |
| OnRPCError | Fires when the server returns an error response to an RPC request. |
| Name | Description |
|---|---|
| OnAcknowledgment | Fires when the server acknowledges receipt of a QoS 1 or 2 message. |
| OnBinary | Fires when a binary frame arrives; payload is delivered as a TMemoryStream. |
| OnConnect | Fires after the WebSocket handshake completes and the sgc subprotocol is initialized. |
| OnDisconnect | Fires when the connection is closed, reporting the close code. |
| OnError | Fires when the server or transport reports an error string. |
| OnEvent | Fires when a message is received on a subscribed channel. |
| OnException | Fires when an unhandled exception occurs on the connection. |
| OnFragmented | Fires for fragmented WebSocket frames, exposing OpCode and continuation flag. |
| OnMessage | Fires when a plain text message arrives on the sgc channel. |
| OnRawMessage | Fires before the component parses a message; set Handled to True to suppress default processing. |
| OnRPCError | Fires when the server returns an error response to an RPC request. |
| OnRPCResult | Fires when the server returns a successful RPC response. |
| OnSession | Fires after a successful connection or GetSession request with the assigned session Guid. |
| OnSubscription | Fires when the client has been subscribed to a channel. |
| OnUnSubscription | Fires when the client has been unsubscribed from a channel. |