What problem does it solve?
This Skill helps developers implement reliable WebSocket-based real-time messaging and pub/sub patterns in TypeScript by providing clear patterns for server-side token negotiation, client connectivity, group management, and Express event handling.
Core Features & Use Cases
- Server token negotiation: Generate client access tokens using WebPubSubServiceClient and secure credentials (connection string, Azure AD).
- Client connectivity and events: Establish resilient WebPubSubClient connections, register event handlers, and manage reconnection and group messages.
- Group and connection management: Add/remove users and connections to groups, broadcast messages, and manage permissions and connection lifecycle.
- Use Case: Build a chat or live-notifications system where a backend issues negotiate tokens, clients connect via WebSocket, join rooms, and receive targeted messages.
Quick Start
Use the azure-web-pubsub-ts skill to generate server and client TypeScript snippets that set up a negotiate endpoint, create a WebPubSubServiceClient with secure credentials, and a WebPubSubClient that connects and joins a group.