Dev & Engineering ✓ Microsoft · Official

Azure Web PubSub Real-Time Messaging

Build TypeScript WebSocket messaging, group communication, and live notification features with Azure Web PubSub.

48/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 2.7k
Last updated
3mo ago
License
MIT
azure-web-pubsubwebsocketreal-time-messagingpub-sub
+3typescriptnode.jsexpress

What does this skill do, and when should you use it?

This skill supports developers using the Azure Web PubSub TypeScript SDKs for server management, client connections, and Express event handling. It covers authentication, client access tokens, broadcasts, user- and connection-targeted messages, groups, permissions, and connection lifecycle events. It also documents Microsoft Entra credentials, reconnection handling, handler registration, and connection validation. It fits teams adding chat, channel-based communication, or live notifications to JavaScript or TypeScript applications.

It guides developers through installing @azure/web-pubsub, @azure/web-pubsub-client, @azure/identity, and @azure/web-pubsub-express; configuring connection strings, endpoints, and credential environment variables; creating WebPubSubServiceClient and WebPubSubClient instances; generating client access tokens; sending messages to all connections, users, connections, or groups; managing groups, connections, and permissions; registering connected, disconnected, group-message, and server-message handlers; and using Express middleware for connection handling, user events, and negotiation endpoints.

Good fit
  • A TypeScript backend developer needs to issue Web PubSub client access URLs and send chat messages to users or groups.
  • A frontend developer needs a browser client that connects to Azure Web PubSub, joins groups, and receives real-time group messages.
  • A product team needs channel-based group chat, topic communication, or real-time collaboration features.
  • An application team needs live notifications targeted to online clients by user, connection, or OData filter.
  • An Express application needs authorization and business handling for connection requests and custom user events.

How do you install this skill?

Before you use it
  • Do not log token.url or any complete URL containing access_token; prevent token logging and use secure secret management.
  • serviceClient and req.user are undefined in the Express negotiation example; add authentication middleware, client initialization, input validation, and error responses before deployment.
  • Closing groups, disconnecting users, and changing permissions have external effects; define authorization boundaries, auditing, and recovery procedures for production.
  • Verify API signatures, event types, and package compatibility against the actual SDK versions, and add runnable tests.
Before you start
Your agent needs
  • Shell / CLI
  • Network access
Install first
  • Node.js and npm
  • @azure/web-pubsub
  • @azure/web-pubsub-client
  • @azure/identity
  • @azure/web-pubsub-express
  • An Azure Web PubSub resource

Install the collection with npx skills add microsoft/skills, then select azure-web-pubsub-ts in the wizard. The skill is installed in the selected agent directory, such as .github/skills/ for GitHub Copilot. Install runtime packages with npm install @azure/web-pubsub @azure/identity; add npm install @azure/web-pubsub-client for client messaging and npm install @azure/web-pubsub-express for Express event handling. The source does not provide a standalone installation command or package versions for this skill.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/.github/plugins/azure-sdk-typescript/skills/azure-web-pubsub-ts" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • Implement Azure Web PubSub group chat in my TypeScript app, including server-side token negotiation, client reconnection, group messaging, and Express connection authorization.

After loading the skill in an Agent Skills-compatible coding agent, use a prompt such as “Implement Azure Web PubSub group chat in my TypeScript app, including server-side token negotiation, client reconnection, group messaging, and Express connection authorization.” Follow the examples to create server and client SDK instances, set WEBPUBSUB_CONNECTION_STRING or WEBPUBSUB_ENDPOINT, and register client handlers before calling start(). For production, use ManagedIdentityCredential or another explicit credential as appropriate.

What are this skill's strengths and limitations?

Pros
  • Covers the three main integration surfaces: server SDK, client SDK, and Express event handling.
  • Includes concrete examples for broadcasts, user messages, connection messages, groups, permissions, and connection closure.
  • Shows connection string, Microsoft Entra Token Credential, and AzureKeyCredential authentication patterns.
  • Provides directly usable TypeScript patterns for chat, group messaging, live notifications, and custom events.
Limitations
  • Focuses on SDK integration and does not provide Azure Web PubSub resource provisioning or infrastructure deployment steps.
  • The source does not provide skill-specific test coverage results, retry strategies, or performance benchmarks.
  • It does not specify SDK or Node.js versions, so compatibility should be checked against the target project.
  • Examples require an Azure Web PubSub resource, endpoint or connection string, and suitable credentials.

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
Azure Web PubSub Real-Time Messaging this page ✓ Microsoft · Official 48 · Use with care ★ 2.7k 3mo ago MIT
Azure Web PubSub for Python ✓ Microsoft · Official 50 · Use with care ★ 2.7k 3mo ago MIT
Azure Service Bus for TypeScript ✓ Microsoft · Official 50 · Use with care ★ 2.7k 3mo ago MIT
Microsoft 365 Agents SDK for TypeScript ✓ Microsoft · Official 48 · Use with care ★ 2.7k 3mo ago MIT
Azure Voice Live for TypeScript ✓ Microsoft · Official 44 · Not recommended ★ 2.7k 3mo ago MIT

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
48/ 100 5-point scale 2.4 / 5
1Trust13 / 25 · 2.6/5

The skill shows Microsoft Entra, managed identity, and connection-string authentication, plus permission configuration and connection management. However, it does not specify least privilege, sensitive-data handling, or confirmation requirements, and it directly logs token.url containing an access token, creating a possible credential-exposure risk; points are deducted.

2Reliability7 / 20 · 1.8/5

The installation, server, client, and Express paths are clearly organized, with brief lifecycle and reconnection handling. However, the Express example references undefined serviceClient and req.user, and lacks input validation, failure handling, compatibility guidance, and reproducible tests; static evidence is insufficient, so the score remains conservative.

3Adaptability10 / 15 · 3.3/5

The name, description, and trigger scenarios are clear, covering WebSocket features, pub/sub, chat, and live notifications. Non-fit boundaries, precise input/output expectations, browser versus Node.js constraints, Chinese-language support, and mainland-China network reachability are not documented, so points are deducted.

4Convention8 / 15 · 2.7/5

Documentation is layered across installation, authentication, server, client, event handling, types, and best practices, with MIT, author, and version metadata. It lacks a changelog, explicit maintenance owner and update path, troubleshooting, known limitations, and a complete end-to-end example, preventing a full score.

5Effectiveness6 / 15 · 2.0/5

Examples cover token generation, broadcast, user and connection sends, groups, connection management, client events, and Express handlers, providing useful core-task guidance. However, key examples are incomplete and contain undefined references, requiring substantial manual validation and integration; static review cannot establish directly runnable output.

6Verifiability4 / 10 · 2.0/5

The material is tied to a fixed repository revision, and the repository includes general CI, Vally workflow, and harness tests. The supplied files do not include skill-specific acceptance criteria, skill-specific test results, or third-party execution evidence, so key paths cannot be independently reproduced and only limited credit is justified.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a Review evidence[1][2][3][4][5][6][7][8][9][10]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

Does this skill provision an Azure Web PubSub resource?
No. It provides SDK usage, authentication, messaging, groups, connection management, and Express event handling examples; the source does not include provisioning steps.
Which authentication approach is recommended for local and production use?
The examples use DefaultAzureCredential for local development and recommend ManagedIdentityCredential or another explicit credential for production, with AZURE_TOKEN_CREDENTIALS configured.
Does the client support reconnection?
Yes. The best-practices section states that the client reconnects automatically by default and includes a rejoin-group-failed handler example.
What does adoption cost?
The source does not describe Azure Web PubSub or related service pricing, so cost cannot be determined from this skill alone.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure Web PubSub for Python

Build Azure WebSocket messaging and publish-subscribe workflows for Python applications.

★ 2.7k FS 50 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for TypeScript

Build enterprise messaging workflows with Azure Service Bus.

★ 2.7k FS 50 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Microsoft 365 Agents SDK for TypeScript

Build TypeScript enterprise agents with routing, Express hosting, streaming responses, and Copilot Studio integration.

★ 2.7k FS 48 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Voice Live for TypeScript

Build real-time, bidirectional voice assistants with Azure in TypeScript.

★ 2.7k FS 44 Not recommended 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Web PubSub for Java

A practical Java SDK guide for Azure Web PubSub messaging, groups, permissions, and real-time client access.

★ 2.7k FS 46 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage TypeScript Skill

Build Azure Queue Storage workers that send, receive, inspect, and manage messages in TypeScript or JavaScript.

★ 2.7k FS 48 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Event Grid for Java

A practical Java SDK guide for publishing, consuming, and handling Azure Event Grid events.

★ 2.7k FS 47 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for .NET

Guides .NET teams in building reliable Azure enterprise messaging workflows.

★ 2.7k FS 47 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for Python

Practical Python guidance for reliable Azure Service Bus queues and publish-subscribe messaging.

★ 2.7k FS 45 Not recommended 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Monitor OpenTelemetry for TypeScript

Add Application Insights observability to Node.js services with OpenTelemetry.

★ 2.7k FS 43 Not recommended 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure PostgreSQL TypeScript Connector

A practical pg-based guide for secure, pooled Azure PostgreSQL access in Node.js and TypeScript.

★ 2.7k FS 49 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for Rust

Guides Rust developers in sending and receiving Azure Service Bus messages through queues, topics, and subscriptions.

★ 2.7k FS 47 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

Configure secure, flexible Microsoft Entra ID authentication for TypeScript Azure applications.

★ 2.7k FS 57 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Application Insights Web Monitoring

Instrument browser and React Native apps with Application Insights for user behavior, requests, errors, and GenAI trace visibility.

★ 2.7k FS 54 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Playwright Cloud Testing

Scale TypeScript Playwright tests on Azure-hosted browsers and publish results.

★ 2.7k FS 53 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Voice Live for Python

Guides Python developers in building real-time, bidirectional voice AI applications on Azure.

★ 2.7k FS 52 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB TypeScript Skill

Gives TypeScript and JavaScript coding agents practical Cosmos DB data-access patterns.

★ 2.7k FS 52 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs TypeScript Skill

Build TypeScript event-streaming applications with batching, partition-aware consumers, checkpointing, and Azure identity authentication.

★ 2.7k FS 52 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

React Flow Node Builder

Create typed React Flow nodes with handles, resizing behavior, and Zustand-backed state integration.

★ 2.7k FS 52 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for TypeScript

A practical guide for uploading, downloading, and managing Azure Blob Storage from TypeScript and JavaScript applications.

★ 2.7k FS 51 Use with care 3mo ago

Related skills