Dev & Engineering ✓ Microsoft · Official azure-web-pubsubwebsocketreal-time-messagingpub-subtypescriptnode.jsexpress

Azure Web PubSub Real-Time Messaging

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

FollowSkills review · FSRS-2.0
Not recommended
48/ 100 5-point scale 2.4 / 5
Trust13 / 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.

Reliability7 / 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.

Adaptability10 / 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.

Convention8 / 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.

Effectiveness6 / 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.

Verifiability4 / 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.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
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.
See the full review method →

What it does & when to 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.

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

Pros & cons

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 to install

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.

How to use

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.

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 Identity for Python

A practical skill for securing Python Azure applications with Microsoft Entra ID credentials.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs Java Skill

Build production-oriented Java event streaming applications on Azure Event Hubs.

Dev & Engineering ✓ Microsoft · Official

Azure Tables for Python

A practical guide to building authenticated Azure Tables applications with Python entity CRUD, queries, and partition-scoped batch operations.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

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

Automation & Ops ✓ Microsoft · Official

Azure Reliability Advisor

Assess and improve reliability for Azure Functions and App Service.

Dev & Engineering ✓ Microsoft · Official

Azure Cloud Architect

Guides coding agents through production-grade Azure architecture design and review using Azure Architecture Center practices.

Dev & Engineering ✓ Microsoft · Official

Azure AI Text Analytics for Python

Guides Python developers through Azure-powered text analysis and NLP workflows.

Automation & Ops ✓ Microsoft · Official

Azure Resource Architecture Visualizer

Analyze Azure resource groups and turn their dependencies into detailed Mermaid architecture diagrams.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

Build .NET location features for search, routing, maps, geolocation, and weather.

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis

Guides Python coding agents in implementing Azure AI Vision image understanding.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Python

Guides secure, production-minded Blob Storage operations in Python.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Python

Gives coding agents reliable Python patterns for secure Azure Queue Storage messaging and asynchronous task processing.

Automation & Ops ✓ Microsoft · Official

Azure AI Gateway Governance

Use Azure API Management to govern traffic across AI models, MCP tools, and agents.

Automation & Ops ✓ Microsoft · Official

AKS Automatic Readiness

Assess Kubernetes workloads for AKS Automatic compatibility and identify migration blockers before you switch.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB ARM for .NET

Provision and manage Azure Cosmos DB resources from .NET through ARM.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Workspace Manager

Provision and manage Microsoft Playwright Testing workspaces with .NET and Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB for Python

A practical guide for building reliable Python applications on Azure Cosmos DB’s NoSQL API.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault SDK for Python

Gives Python coding agents practical guidance for securely managing Azure Key Vault secrets, keys, and certificates.

Dev & Engineering ✓ Microsoft · Official

Azure API Management for Python

Gives coding agents practical Python SDK patterns for managing Azure API Management services, APIs, products, subscriptions, and policies.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Python

Generate Python code for querying Azure Monitor logs and metrics.

Related skills