capabilities.work

Broadcast to Group if Active

A 2-step recipe with Azure Web PubSub. We can help you get access.

Recipe · 2 steps

Broadcast to Group if Active

Check whether a group has connections, then broadcast only if it does.

  1. Probe whether the group currently has any connected members. A 200 means it is active; a 404 means it is empty.
  2. Broadcast the supplied plain-text message to every connection in the group.
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 check and broadcast to.
  • message: The plain-text message to broadcast to the group.
For your developer

Arazzo workflow microsoft-azure-web-pubsub:broadcast-to-group-if-active, 2 operations: webPubSub_groupExists → webPubSub_sendToGroup. Specs on APIs.io.