capabilities.work

Direct Connection Message

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

Recipe · 2 steps

Direct Connection Message

Verify a connection exists, then send a message directly to that connection.

  1. Probe whether the connection is still attached. A 200 means it exists; a 404 means it is gone.
  2. Deliver the supplied plain-text message directly to the single connection.
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.
  • connectionId: The connection id to verify and message.
  • message: The plain-text message to deliver to the connection.
For your developer

Arazzo workflow microsoft-azure-web-pubsub:direct-connection-message, 2 operations: webPubSub_connectionExists → webPubSub_sendToConnection. Specs on APIs.io.