TsgcWSPServer_WAMP › Events

TsgcWSPServer_WAMP Events

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

Lifecycle

NameDescription
OnConnectFires on the server side when a WebSocket client finishes the handshake and attaches to the WAMP sub-protocol.
OnDisconnectFires on the server when a WAMP client closes its WebSocket transport or the server drops it.
OnErrorFires when the server detects a transport or protocol-level error on a WAMP client connection.
OnExceptionFires when a Delphi exception is raised inside the server's worker threads or user event handlers.

Messaging

NameDescription
OnMessageFires for incoming text frames from a client that the WAMP decoder did not route to a dedicated RPC or PubSub event.
OnBinaryFires when a client sends a binary WebSocket frame that is not part of the standard WAMP v1 text protocol.
OnFragmentedFires for each fragment of a multi-frame WebSocket message received from a client before the payload is reassembled.
OnRawMessageFires before WAMP decoding, letting the server inspect every incoming text frame and optionally suppress further processing.

PubSub

NameDescription
OnBeforeSubscriptionFires when a client sends a SUBSCRIBE frame, giving the server the chance to accept or reject the subscription.
OnSubscriptionFires after a client subscription has been accepted and the broker has registered the client against the topic.
OnUnSubscriptionFires when a client sends an UNSUBSCRIBE frame and the broker has removed it from the topic.

RPC

NameDescription
OnCallFires when a client invokes a remote procedure; the handler must respond through CallResult, CallProgressResult or CallError.
OnBeforeCancelCallFires when a client asks to cancel an in-flight RPC, giving the server the chance to honour or refuse the request.

Namespaces

NameDescription
OnPrefixFires when a client sends a PREFIX frame, registering a shortcut (CURIE) that expands to a full URI.

All Events (alphabetical)

NameDescription
OnBeforeCancelCallFires when a client asks to cancel an in-flight RPC, giving the server the chance to honour or refuse the request.
OnBeforeSubscriptionFires when a client sends a SUBSCRIBE frame, giving the server the chance to accept or reject the subscription.
OnBinaryFires when a client sends a binary WebSocket frame that is not part of the standard WAMP v1 text protocol.
OnCallFires when a client invokes a remote procedure; the handler must respond through CallResult, CallProgressResult or CallError.
OnConnectFires on the server side when a WebSocket client finishes the handshake and attaches to the WAMP sub-protocol.
OnDisconnectFires on the server when a WAMP client closes its WebSocket transport or the server drops it.
OnErrorFires when the server detects a transport or protocol-level error on a WAMP client connection.
OnExceptionFires when a Delphi exception is raised inside the server's worker threads or user event handlers.
OnFragmentedFires for each fragment of a multi-frame WebSocket message received from a client before the payload is reassembled.
OnMessageFires for incoming text frames from a client that the WAMP decoder did not route to a dedicated RPC or PubSub event.
OnPrefixFires when a client sends a PREFIX frame, registering a shortcut (CURIE) that expands to a full URI.
OnRawMessageFires before WAMP decoding, letting the server inspect every incoming text frame and optionally suppress further processing.
OnSubscriptionFires after a client subscription has been accepted and the broker has registered the client against the topic.
OnUnSubscriptionFires when a client sends an UNSUBSCRIBE frame and the broker has removed it from the topic.