Azure Web PubSub logo

Azure Web PubSub

Azure Web PubSub is a fully-managed service that enables building real-time, two-way messaging applications using publish-subscribe patterns over WebSockets. It supports broadcasting messages to clients in groups, sending messages to specific connections or users, and integrating with serverless event handlers for scalable real-time experiences.

7 APIs 0 Features
MessagingPub-SubReal-TimeServerlessWebSockets

APIs

Azure Web PubSub Service REST API

Data plane REST API for sending messages to connections, groups, and users on a Web PubSub service instance. Supports broadcast operations, targeted message delivery, and managi...

Azure Web PubSub Client and Upstream Events

AsyncAPI 2.6 description of the Azure Web PubSub client WebSocket subprotocols (json.webpubsub.azure.v1 and json.reliable.webpubsub.azure.v1) and the CloudEvents 1.0 HTTP upstre...

Azure Web PubSub Management REST API

Control plane REST API for provisioning and managing Azure Web PubSub service instances. Supports creating, scaling, configuring, regenerating access keys, and deleting Web PubS...

Azure Web PubSub Hubs REST API

REST API for managing hub configurations within a Web PubSub instance. Hubs provide logical isolation for messaging and allow per-hub configuration of event handlers, anonymous ...

Azure Web PubSub for Socket.IO REST API

REST API for managing Azure Web PubSub for Socket.IO instances. Provides a fully managed Socket.IO server replacement that allows existing Socket.IO applications to scale to mil...

Azure Web PubSub Private Endpoint Connections REST API

REST API for managing private endpoint connections to a Web PubSub service instance. Enables secure, private connectivity from virtual networks to Web PubSub through Azure Priva...

Azure Web PubSub Shared Private Link Resources REST API

REST API for managing shared private link resources for a Web PubSub service. Enables outbound private connectivity from Web PubSub to other Azure resources such as Key Vault an...

Event Specifications

Azure Web PubSub

Azure Web PubSub is a fully managed real-time messaging service from Microsoft Azure that lets clients exchange publish/subscribe messages over WebSockets without operating WebS...

ASYNCAPI

Resources

🔗
ArazzoWorkflows
ArazzoWorkflows
🌐
Portal
Portal
🔗
Website
Website
🔗
Documentation
Documentation
🚀
GettingStarted
GettingStarted
🔑
Authentication
Authentication
💰
Pricing
Pricing
🔗
SLA
SLA
🟢
StatusPage
StatusPage
📰
Blog
Blog
💬
Support
Support
📜
TermsOfService
TermsOfService
📜
PrivacyPolicy
PrivacyPolicy
📝
SignUp
SignUp
🔗
Login
Login
📦
SDKs
SDKs
📦
SDK - JavaScript
SDK - JavaScript
📦
SDK - Python
SDK - Python
📦
SDK - .NET
SDK - .NET
📦
SDK - Java
SDK - Java
📦
SDK - Go
SDK - Go
🔧
CLI Tools
CLI Tools
📄
ChangeLog
ChangeLog
👥
GitHubOrganization
GitHubOrganization
👥
GitHub Samples
GitHub Samples
👥
StackOverflow
StackOverflow
🔗
Community
Community
💬
FAQ
FAQ
🔗
Quotas
Quotas

Sources

Raw ↑
name: Azure Web PubSub
description: Azure Web PubSub is a fully-managed service that enables building real-time, two-way messaging applications using publish-subscribe patterns over WebSockets. It supports broadcasting messages to clients in groups, sending messages to specific connections or users, and integrating with serverless event handlers for scalable real-time experiences.
image: https://azure.microsoft.com/svghandler/web-pubsub/
tags:
  - Messaging
  - Pub-Sub
  - Real-Time
  - Serverless
  - WebSockets
created: '2026-03-13'
modified: '2026-05-30'
url: https://azure.microsoft.com/en-us/services/web-pubsub/
specificationVersion: '0.18'
apis:
  - name: Azure Web PubSub Service REST API
    description: Data plane REST API for sending messages to connections, groups, and users on a Web PubSub service instance. Supports broadcast operations, targeted message delivery, and managing client lifecycle including disconnect operations and existence checks.
    image: https://azure.microsoft.com/svghandler/web-pubsub/
    humanURL: https://learn.microsoft.com/en-us/rest/api/webpubsub/dataplane
    baseURL: https://{instance}.webpubsub.azure.com
    tags:
      - Data Plane
      - Messaging
      - Web PubSub
    properties:
      - type: Documentation
        url: https://learn.microsoft.com/en-us/rest/api/webpubsub/dataplane
      - type: OpenAPI
        url: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/webpubsub/data-plane/WebPubSub/stable/2024-01-01/webpubsub.json
      - type: Reference
        url: https://learn.microsoft.com/en-us/rest/api/webpubsub/dataplane/web-pub-sub
      - type: Authentication
        url: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/howto-generate-client-tokens
  - name: Azure Web PubSub Client and Upstream Events
    description: AsyncAPI 2.6 description of the Azure Web PubSub client WebSocket subprotocols (json.webpubsub.azure.v1 and json.reliable.webpubsub.azure.v1) and the CloudEvents 1.0 HTTP upstream contract used by the service to deliver client events (connect, connected, disconnected, message, user custom events) to a configured backend webhook.
    image: https://azure.microsoft.com/svghandler/web-pubsub/
    humanURL: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/reference-json-webpubsub-subprotocol
    baseURL: wss://{instance}.webpubsub.azure.com
    tags:
      - AsyncAPI
      - CloudEvents
      - Event-Driven
      - Pub-Sub
      - WebSockets
    properties:
      - type: AsyncAPI
        url: https://raw.githubusercontent.com/api-evangelist/microsoft-azure-web-pubsub/main/asyncapi/microsoft-azure-web-pubsub-asyncapi.yml
      - type: Documentation
        url: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/reference-json-webpubsub-subprotocol
      - type: Reference
        url: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/reference-json-reliable-webpubsub-subprotocol
      - type: Reference
        url: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/reference-cloud-events
      - type: Authentication
        url: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/howto-generate-client-tokens
  - name: Azure Web PubSub Management REST API
    description: Control plane REST API for provisioning and managing Azure Web PubSub service instances. Supports creating, scaling, configuring, regenerating access keys, and deleting Web PubSub resources through Azure Resource Manager.
    image: https://azure.microsoft.com/svghandler/web-pubsub/
    humanURL: https://learn.microsoft.com/en-us/rest/api/webpubsub
    baseURL: https://management.azure.com
    tags:
      - Control Plane
      - Resource Manager
      - Web PubSub
    properties:
      - type: Documentation
        url: https://learn.microsoft.com/en-us/rest/api/webpubsub
      - type: OpenAPI
        url: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/webpubsub.json
      - type: Reference
        url: https://learn.microsoft.com/en-us/rest/api/webpubsub/web-pub-sub
      - type: Authentication
        url: https://learn.microsoft.com/en-us/azure/active-directory/develop/authentication-scenarios
  - name: Azure Web PubSub Hubs REST API
    description: REST API for managing hub configurations within a Web PubSub instance. Hubs provide logical isolation for messaging and allow per-hub configuration of event handlers, anonymous connect policies, and authorization settings.
    image: https://azure.microsoft.com/svghandler/web-pubsub/
    humanURL: https://learn.microsoft.com/en-us/rest/api/webpubsub/web-pub-sub-hubs
    baseURL: https://management.azure.com
    tags:
      - Hubs
      - Resource Manager
      - Web PubSub
    properties:
      - type: Documentation
        url: https://learn.microsoft.com/en-us/rest/api/webpubsub/web-pub-sub-hubs
      - type: Reference
        url: https://learn.microsoft.com/en-us/rest/api/webpubsub/web-pub-sub-hubs?view=rest-webpubsub-2024-03-01
  - name: Azure Web PubSub for Socket.IO REST API
    description: REST API for managing Azure Web PubSub for Socket.IO instances. Provides a fully managed Socket.IO server replacement that allows existing Socket.IO applications to scale to millions of connections without rewriting application code.
    image: https://azure.microsoft.com/svghandler/web-pubsub/
    humanURL: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/socketio-overview
    baseURL: https://management.azure.com
    tags:
      - Resource Manager
      - Socket.IO
      - Web PubSub
    properties:
      - type: Documentation
        url: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/socketio-overview
      - type: Reference
        url: https://learn.microsoft.com/en-us/rest/api/webpubsub/web-pub-sub?view=rest-webpubsub-2024-03-01
      - type: GettingStarted
        url: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/socketio-quickstart
  - name: Azure Web PubSub Private Endpoint Connections REST API
    description: REST API for managing private endpoint connections to a Web PubSub service instance. Enables secure, private connectivity from virtual networks to Web PubSub through Azure Private Link without exposing traffic to the public internet.
    image: https://azure.microsoft.com/svghandler/web-pubsub/
    humanURL: https://learn.microsoft.com/en-us/rest/api/webpubsub/web-pub-sub-private-endpoint-connections
    baseURL: https://management.azure.com
    tags:
      - Networking
      - Private Endpoints
      - Resource Manager
    properties:
      - type: Documentation
        url: https://learn.microsoft.com/en-us/rest/api/webpubsub/web-pub-sub-private-endpoint-connections
      - type: Reference
        url: https://learn.microsoft.com/en-us/rest/api/webpubsub/web-pub-sub-private-endpoint-connections?view=rest-webpubsub-2024-03-01
  - name: Azure Web PubSub Shared Private Link Resources REST API
    description: REST API for managing shared private link resources for a Web PubSub service. Enables outbound private connectivity from Web PubSub to other Azure resources such as Key Vault and Storage when configuring upstream event handlers.
    image: https://azure.microsoft.com/svghandler/web-pubsub/
    humanURL: https://learn.microsoft.com/en-us/rest/api/webpubsub/web-pub-sub-shared-private-link-resources
    baseURL: https://management.azure.com
    tags:
      - Networking
      - Private Link
      - Resource Manager
    properties:
      - type: Documentation
        url: https://learn.microsoft.com/en-us/rest/api/webpubsub/web-pub-sub-shared-private-link-resources
      - type: Reference
        url: https://learn.microsoft.com/en-us/rest/api/webpubsub/web-pub-sub-shared-private-link-resources?view=rest-webpubsub-2024-03-01
common:
  - type: ArazzoWorkflows
    url: arazzo/
    workflows:
    - url: arazzo/microsoft-azure-web-pubsub-check-then-close-connection-workflow.yml
      name: Azure Web PubSub Check then Close Connection
      summary: Verify a connection exists before closing it, branching on whether it is present.
    - url: arazzo/microsoft-azure-web-pubsub-direct-connection-message-workflow.yml
      name: Azure Web PubSub Direct Connection Message
      summary: Confirm a connection exists, then send a targeted message to just that connection.
    - url: arazzo/microsoft-azure-web-pubsub-grant-permission-and-send-to-user-workflow.yml
      name: Azure Web PubSub Grant Permission then Send to User
      summary: Grant a connection a group permission, then deliver a message to that user.
    - url: arazzo/microsoft-azure-web-pubsub-grant-permission-if-missing-workflow.yml
      name: Azure Web PubSub Grant Permission if Missing
      summary: Check whether a connection already holds a permission, granting it only when absent.
    - url: arazzo/microsoft-azure-web-pubsub-group-broadcast-if-active-workflow.yml
      name: Azure Web PubSub Broadcast to Group if Active
      summary: Only broadcast to a group when it currently has connected members.
    - url: arazzo/microsoft-azure-web-pubsub-group-warn-and-teardown-workflow.yml
      name: Azure Web PubSub Warn Group and Tear Down
      summary: Broadcast a final warning to a group, then close every connection in that group.
    - url: arazzo/microsoft-azure-web-pubsub-join-group-and-send-workflow.yml
      name: Azure Web PubSub Join Group, Send, then Leave
      summary: Add a connection to a group, broadcast a message to that group, then remove the connection.
    - url: arazzo/microsoft-azure-web-pubsub-notify-user-if-online-workflow.yml
      name: Azure Web PubSub Notify User if Online
      summary: Send a user a message only when they currently have at least one live connection.
    - url: arazzo/microsoft-azure-web-pubsub-provision-client-and-join-group-workflow.yml
      name: Azure Web PubSub Provision Client and Join Group
      summary: Mint a client token, add the connection to a group, and announce the join to that group.
    - url: arazzo/microsoft-azure-web-pubsub-revoke-permission-and-evict-workflow.yml
      name: Azure Web PubSub Revoke Permission and Evict Connection
      summary: Revoke a connection's group permission, then forcibly close that connection.
    - url: arazzo/microsoft-azure-web-pubsub-token-then-broadcast-workflow.yml
      name: Azure Web PubSub Generate Token then Broadcast
      summary: Mint a client access token for a hub and immediately broadcast a message to every connection.
    - url: arazzo/microsoft-azure-web-pubsub-user-onboard-to-group-workflow.yml
      name: Azure Web PubSub Onboard User to Group
      summary: Add a user to a group and welcome them with a targeted message in one flow.
  - type: Portal
    url: https://portal.azure.com/
  - type: Website
    url: https://azure.microsoft.com/en-us/products/web-pubsub
  - type: Documentation
    url: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/
  - type: GettingStarted
    url: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/quickstart-serverless
  - type: Authentication
    url: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/howto-generate-client-tokens
  - type: Pricing
    url: https://azure.microsoft.com/en-us/pricing/details/web-pubsub/
  - type: SLA
    url: https://azure.microsoft.com/en-us/support/legal/sla/web-pubsub/
  - type: StatusPage
    url: https://status.azure.com/
  - type: Blog
    url: https://devblogs.microsoft.com/azure-sdk/
  - type: Support
    url: https://azure.microsoft.com/en-us/support/options/
  - type: TermsOfService
    url: https://azure.microsoft.com/en-us/support/legal/
  - type: PrivacyPolicy
    url: https://privacy.microsoft.com/en-us/privacystatement
  - type: SignUp
    url: https://azure.microsoft.com/en-us/free
  - type: Login
    url: https://portal.azure.com
  - type: SDKs
    url: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/reference-server-sdk-js
  - type: SDK - JavaScript
    url: https://www.npmjs.com/package/@azure/web-pubsub
  - type: SDK - Python
    url: https://pypi.org/project/azure-messaging-webpubsubservice/
  - type: SDK - .NET
    url: https://www.nuget.org/packages/Azure.Messaging.WebPubSub
  - type: SDK - Java
    url: https://learn.microsoft.com/en-us/java/api/overview/azure/messaging-webpubsub-readme
  - type: SDK - Go
    url: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/messaging/azwebpubsub
  - type: CLI Tools
    url: https://learn.microsoft.com/en-us/cli/azure/webpubsub
  - type: ChangeLog
    url: https://azure.microsoft.com/en-us/updates/?product=web-pubsub
  - type: GitHubOrganization
    url: https://github.com/Azure
  - type: GitHub Samples
    url: https://github.com/Azure/azure-webpubsub
  - type: StackOverflow
    url: https://stackoverflow.com/questions/tagged/azure-webpubsub
  - type: Community
    url: https://learn.microsoft.com/en-us/answers/tags/371/azure-web-pubsub
  - type: FAQ
    url: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/resource-faq
  - type: Quotas
    url: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/concept-billing-model
maintainers:
  - FN: Kin Lane
    email: kin@apievangelist.com