TsgcWSPServer_WAMP › Events
Events you can handle, grouped by purpose, followed by the full alphabetical list.
| Name | Description |
|---|---|
| OnConnect | Fires on the server side when a WebSocket client finishes the handshake and attaches to the WAMP sub-protocol. |
| OnDisconnect | Fires on the server when a WAMP client closes its WebSocket transport or the server drops it. |
| OnError | Fires when the server detects a transport or protocol-level error on a WAMP client 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 from a client that the WAMP decoder did not route to a dedicated RPC or PubSub event. |
| OnBinary | Fires when a client sends a binary WebSocket frame that is not part of the standard WAMP v1 text protocol. |
| OnFragmented | Fires for each fragment of a multi-frame WebSocket message received from a client before the payload is reassembled. |
| OnRawMessage | Fires before WAMP decoding, letting the server inspect every incoming text frame and optionally suppress further processing. |
| Name | Description |
|---|---|
| OnBeforeSubscription | Fires when a client sends a SUBSCRIBE frame, giving the server the chance to accept or reject the subscription. |
| OnSubscription | Fires after a client subscription has been accepted and the broker has registered the client against the topic. |
| OnUnSubscription | Fires when a client sends an UNSUBSCRIBE frame and the broker has removed it from the topic. |
| Name | Description |
|---|---|
| OnCall | Fires when a client invokes a remote procedure; the handler must respond through CallResult, CallProgressResult or CallError. |
| OnBeforeCancelCall | Fires when a client asks to cancel an in-flight RPC, giving the server the chance to honour or refuse the request. |
| Name | Description |
|---|---|
| OnPrefix | Fires when a client sends a PREFIX frame, registering a shortcut (CURIE) that expands to a full URI. |
| Name | Description |
|---|---|
| OnBeforeCancelCall | Fires when a client asks to cancel an in-flight RPC, giving the server the chance to honour or refuse the request. |
| OnBeforeSubscription | Fires when a client sends a SUBSCRIBE frame, giving the server the chance to accept or reject the subscription. |
| OnBinary | Fires when a client sends a binary WebSocket frame that is not part of the standard WAMP v1 text protocol. |
| OnCall | Fires when a client invokes a remote procedure; the handler must respond through CallResult, CallProgressResult or CallError. |
| OnConnect | Fires on the server side when a WebSocket client finishes the handshake and attaches to the WAMP sub-protocol. |
| OnDisconnect | Fires on the server when a WAMP client closes its WebSocket transport or the server drops it. |
| OnError | Fires when the server detects a transport or protocol-level error on a WAMP client 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 client before the payload is reassembled. |
| OnMessage | Fires for incoming text frames from a client that the WAMP decoder did not route to a dedicated RPC or PubSub event. |
| OnPrefix | Fires when a client sends a PREFIX frame, registering a shortcut (CURIE) that expands to a full URI. |
| OnRawMessage | Fires before WAMP decoding, letting the server inspect every incoming text frame and optionally suppress further processing. |
| OnSubscription | Fires after a client subscription has been accepted and the broker has registered the client against the topic. |
| OnUnSubscription | Fires when a client sends an UNSUBSCRIBE frame and the broker has removed it from the topic. |