Skip to main content
Version: Next

PrivateChannel.eventListenerRemoved

Desktop Agent bridging message exchange for the removal of an event handler from a PrivateChannel. Generated by API calls:

Message Exchange Type: Request only

caution

Some additional tracking of PrivateChannel metadata is required on the Desktop Agent that created each PrivateChannel and on any Desktop Agent interacting with it, in order to use these message exchanges. Please see the relevant section of the Agent Bridging overview for more details.

Private channels support a number of additional event listeners (onAddContextListener, onUnsubscribe, onDisconnect), when an application removes an event listener from a PrivateChannel that was created remotely and returned as an IntentResult (which should be tracked by the Desktop Agent Bridge client) a message needs to be sent to the agent that created the channel so it can discard retained routing information. A single message type is used for this with a payload.listenerType field.

Message exchange

Request format

Request message schemas

Example

// agent-A -> DAB
{
"type": "PrivateChannel.eventListenerRemoved",
"payload": {
"channelId": "private-channel-ABC123",
"listenerType": "onAddContextListener"
},
"meta": {
"requestUuid": "<requestUuid>",
"timestamp": "2020-03-...",
"source": {
"appId": "AChatApp",
"instanceId": "02e575aa-4c3a-4b66-acad-155073be21f6",
"desktopAgent": "agent-A" //added by DAB
},
"destination": {
"appId": "AnotherApp",
"instanceId": "02e235ba-acad-4b66-4c3a-547073be23f1",
"desktopAgent": "agent-B"
}
}
}