cleanContextSubscribers(contextName)
Deletes the subscription items of all events under the given context.
Returns
Not applicable.
Parameters
Name | Type | Description | Required |
contextName | string | The name of the context containing the events whose subscription items must be deleted. | ✅ |
Usage example
In this example, the API deletes the subscription items of all the events under the
app/primary_1
context.
PCore.getPubSubUtils().cleanContextSubscribers("app/primary_1");
Previous topic APIs in the PubSubUtils class Next topic publish(eventType, payload)