Warn Group and Tear Down
A 2-step recipe with Azure Web PubSub. We can help you get access.
Recipe · 2 steps
Warn Group and Tear Down
with Azure Web PubSub
Send a final warning to a group, then close all connections in the group.
- Broadcast the final warning to every connection in the group so clients can react before being closed.
- Close every connection currently in the group, fully tearing it down.
What you'll need to have ready
- accessToken: JWT bearer token for the Web PubSub data plane.
- apiVersion: Data plane REST API version.
- hub: Target hub name.
- group: Group name to warn and tear down.
- warning: The plain-text warning broadcast before teardown.
For your developer
Arazzo workflow microsoft-azure-web-pubsub:warn-group-and-teardown, 2 operations: webPubSub_sendToGroup → webPubSub_closeGroupConnections. Specs on APIs.io.