TsgcWSPClient_WAMP › Events

TsgcWSPClient_WAMP Events

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

Lifecycle

NameDescription
OnConnectFires when the underlying WebSocket (or raw TCP) transport has successfully connected to the server.
OnDisconnectFires when the underlying transport closes, ending the current WAMP session.
OnWelcomeFires when the server's WELCOME frame has been received, signalling that the WAMP session is fully open and ready for RPC and PubSub calls.
OnErrorFires when the component detects a transport or protocol-level error condition.
OnExceptionFires when a Delphi exception is raised inside one of the component's worker threads or event handlers.

Messaging

NameDescription
OnMessageFires for incoming text frames that the WAMP decoder did not route to a higher-level RPC or PubSub handler.
OnBinaryFires when the server 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 before reassembly.
OnRawMessageFires before WAMP decoding, giving the application first look at every incoming text frame with an option to suppress further processing.

RPC

NameDescription
OnCallResultFires once per successful RPC to deliver the final result of a Call invocation.
OnCallProgressResultFires for each interim chunk of a streaming RPC before the final result arrives via OnCallResult.
OnCallErrorFires when a remote procedure invoked by Call fails on the server or is rejected.

PubSub

NameDescription
OnEventFires when a published event arrives on a topic this client has previously subscribed to.

All Events (alphabetical)

NameDescription
OnBinaryFires when the server sends a binary WebSocket frame that is not part of the standard WAMP v1 text protocol.
OnCallErrorFires when a remote procedure invoked by Call fails on the server or is rejected.
OnCallProgressResultFires for each interim chunk of a streaming RPC before the final result arrives via OnCallResult.
OnCallResultFires once per successful RPC to deliver the final result of a Call invocation.
OnConnectFires when the underlying WebSocket (or raw TCP) transport has successfully connected to the server.
OnDisconnectFires when the underlying transport closes, ending the current WAMP session.
OnErrorFires when the component detects a transport or protocol-level error condition.
OnEventFires when a published event arrives on a topic this client has previously subscribed to.
OnExceptionFires when a Delphi exception is raised inside one of the component's worker threads or event handlers.
OnFragmentedFires for each fragment of a multi-frame WebSocket message before reassembly.
OnMessageFires for incoming text frames that the WAMP decoder did not route to a higher-level RPC or PubSub handler.
OnRawMessageFires before WAMP decoding, giving the application first look at every incoming text frame with an option to suppress further processing.
OnWelcomeFires when the server's WELCOME frame has been received, signalling that the WAMP session is fully open and ready for RPC and PubSub calls.