TsgcWSPClient_WAMPMethods › CancelCall

CancelCall Method

Requests cancellation of an in-flight RPC previously started with Call.

Syntax

procedure CancelCall(const aCallId: string);

Parameters

NameTypeDescription
aCallIdconst stringIdentifier of the outstanding call to abort. Must match the aCallId passed to a previous Call that has not yet completed.

Remarks

Sends a WAMP v1 CALL_CANCEL frame for the given id. Cancellation is advisory: the server may still deliver a final OnCallResult if processing has already completed, or fire OnCallError with a cancellation error URI. The client must continue to accept the next event for that id so that local bookkeeping (pending-call dictionaries, timers) can be cleared deterministically.

Example


WAMP.CancelCall(vCallId);

Back to Methods