Join Group, Send, then Leave
A 3-step recipe with Azure Web PubSub. We can help you get access.
Recipe · 3 steps
Join Group, Send, then Leave
with Azure Web PubSub
Add a connection to a group, send a message to the group, then remove the connection.
- Add the connection to the named group so it begins receiving group messages.
- Broadcast the supplied plain-text message to every connection in the group.
- Remove the connection from the group so it stops receiving future group messages.
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 add the connection to and broadcast to.
- connectionId: The connection id to add to the group.
- message: The plain-text message to broadcast to the group.
For your developer
Arazzo workflow microsoft-azure-web-pubsub:join-group-send-leave, 3 operations: webPubSub_addConnectionToGroup → webPubSub_sendToGroup → webPubSub_removeConnectionFromGroup. Specs on APIs.io.