azure-web-pubsub-ts - Azure Web PubSub SDKs for TypeScript usage guide
Build real-time messaging applications using Azure Web PubSub SDKs for JavaScript and TypeScript.
Tags
Updated: 2026-09-18Capabilities
Typical Inputs
What this skill does
- Generate client access tokens
- Send broadcast and direct messages
- Manage pub-sub groups and connections
- Connect client via WebSocket
- Handle Express WebPubSub events
Inputs
- WEBPUBSUB_CONNECTION_STRING environment variable
- WEBPUBSUB_ENDPOINT environment variable
- User IDs and connection IDs
- Group names and message data
Outputs
- Client access token URLs
- WebSocket real-time messages
- Express event handler HTTP responses
Requirements
- Node.js runtime environment
- npm package @azure/web-pubsub
- npm package @azure/web-pubsub-client
- npm package @azure/web-pubsub-express
