Dev & Engineering ✓ Microsoft · Official azure-web-pubsubjava-sdkwebsocket-messagingreal-time-applicationsgroup-messagingazure-identity

Azure Web PubSub for Java

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

FollowSkills review · FSRS-2.0
Use with care
46/ 100 5-point scale 2.3 / 5
1 2 3 4 5 6
1Trust14 / 25 · 2.8/5

The evidence provides DefaultAzureCredential, managed identity, token-expiration, and least-role guidance, with environment-variable examples, and shows no malicious or covert exfiltration behavior. Points are deducted because secret storage, logging, and data-flow risks are not explained; an access-token URL is printed; role examples are broad; and externally visible operations such as closing connections lack confirmation, rollback, or recovery guidance.

2Reliability6 / 20 · 1.5/5

The documentation covers major synchronous, asynchronous, messaging, group, connection, and error-handling paths, with a pinned dependency version. Points are deducted because there are no skill-specific tests or execution results in the supplied evidence; some examples have compilation uncertainty, such as a missing displayed Duration import in the token example; and abnormal-input handling is thin. Static calibration limits this dimension to 10, so the score remains 6.

3Adaptability9 / 15 · 3.0/5

The name, description, and trigger phrases clearly target Java Azure Web PubSub, WebSocket, chat, and live-push scenarios. Points are deducted because non-fit cases, input/output boundaries, and service prerequisites are not stated, and there is no Chinese-language or mainland-China reachability guidance. The core service depends on Azure Web PubSub, but the material does not establish availability in the target environment.

4Convention8 / 15 · 2.7/5

The skill includes installation, client creation, concepts, examples, environment variables, role references, best practices, and a dedicated references/examples.md file; license and version metadata are clear. Points are deducted for missing changelog, compatibility range, troubleshooting FAQ, named maintenance responsibility, and explicit update path. The reference material also duplicates much of the main document and leaves assumptions implicit.

5Effectiveness6 / 15 · 2.0/5

The evidence indicates that the skill can provide directly usable snippets and a chat-service example for common Web PubSub Java tasks, so the core task is substantially covered. Points are deducted because no generated output or execution is verified, and some code may require additional imports, authentication decisions, production security controls, integration, and testing. Static calibration limits this dimension to 7, so the score remains 6.

6Verifiability3 / 10 · 1.5/5

The skill files, reference examples, and fixed revision provide auditable primary material with concrete code patterns. Points are deducted because there is no skill-specific test suite, CI coverage, or third-party execution evidence, and the supplied repository-level tests do not establish coverage of this skill. Static calibration limits this dimension to 5, so the score is 3.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • Avoid hard-coding, logging, or committing connection strings, access keys, or client-token URLs; verify their exposure scope.
  • Closing connections, granting roles, and broadcasting to all connections have external effects and require application-level authorization, confirmation, auditing, and recovery controls.
  • Compile the examples against azure-messaging-webpubsub 1.5.0 and add any missing imports, exception handling, and production configuration before adoption.
  • Verify Azure Web PubSub reachability, regional availability, and compliance requirements for the intended deployment and mainland-China users.
See the full review method →

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

This skill helps Java developers build real-time web applications with the Azure Web PubSub SDK. It covers synchronous and asynchronous client creation, authentication, text and JSON messaging, group and connection management, and user-targeted delivery. It also documents client access tokens, roles, environment variables, and HTTP error handling. Adopt it when your project already uses Azure Web PubSub and needs Java patterns for chat, live updates, or server-to-client notifications.

Shows how to add com.azure:azure-messaging-webpubsub:1.5.0 with Maven and create synchronous or asynchronous clients using a connection string, access key, or DefaultAzureCredential; send text and JSON messages to all connections, filtered connections, groups, individual connections, or users; add, remove, and check group membership; inspect and close connections or user connections; generate client access tokens with user IDs, roles, groups, and expiration settings; grant, revoke, and check permissions; and handle HttpResponseException responses by reading status codes and error messages.

  1. A Java backend developer building chat functionality with group or user-targeted messaging.
  2. A real-time web application team broadcasting live status or content updates to connected clients.
  3. A product that needs session control through hubs, groups, user IDs, and connection IDs.
  4. A production Azure application using DefaultAzureCredential or managed identity for authentication.
  5. A service issuing client access tokens with roles or groups for browser-facing connections.

What are this skill's strengths and limitations?

Pros
  • Covers broadcast, filtered delivery, groups, users, and individual connections.
  • Includes both synchronous and asynchronous Java client examples.
  • Documents connection management, client tokens, and fine-grained role permissions.
  • Shows connection string, access-key, and DefaultAzureCredential authentication patterns.
  • The skill and repository state that they use the MIT license.
Limitations
  • Focuses on the server-side Java SDK rather than a complete application or browser client.
  • The source does not specify a Java version, Azure resource provisioning flow, or deployment process.
  • No skill-specific test results or acceptance scenarios are provided in the source.
  • Azure service pricing and quotas are outside the supplied material.

How do you install this skill?

Install the repository collection using the documented command npx skills add microsoft/skills, then select the needed skill in the wizard. The skill is installed into the selected agent directory, such as .github/skills/ for GitHub Copilot. For the Java project, add com.azure:azure-messaging-webpubsub:1.5.0 to Maven pom.xml. The source does not document a separate installation command for this individual plugin skill.

How do you use this skill?

After installing the skill into the agent configuration directory, trigger it with a prompt such as “Use Web PubSub Java to implement group-based JSON messaging for a chat backend” or “Implement real-time push notifications with Azure Web PubSub for Java.” Configure the connection string, endpoint, or access key required by the selected authentication method and set a hub in the client builder. The source does not define a platform-specific trigger configuration format.

FAQ

Does adopting this skill cost money?
The skill and repository use the MIT license. Pricing for the Azure Web PubSub service is not covered by the supplied source.
Which authentication approach is intended for production?
The examples favor DefaultAzureCredential for production, with ManagedIdentityCredential shown as a direct option. Connection strings and AzureKeyCredential are also documented.
How are message failures handled?
The synchronous example catches HttpResponseException and reads the response status code and error message.
Does the skill create the Azure Web PubSub resource?
No resource provisioning or deployment workflow is documented; the scope is client creation, messaging, connection management, tokens, and permissions.

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.

Dev & Engineering ✓ Microsoft · Official

Azure Web PubSub Real-Time Messaging

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

Dev & Engineering ✓ Microsoft · Official

Azure Communication Chat for Java

A practical Java SDK guide for building Azure real-time chat threads, messaging, and participant workflows.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Log Ingestion for Java

Guides Java applications in sending structured custom logs to Azure Monitor through DCRs.

Dev & Engineering ✓ Microsoft · Official

Azure Event Grid for Java

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

Dev & Engineering ✓ Microsoft · Official

Azure AI VoiceLive for Java

Build real-time, bidirectional AI voice conversations in Java over WebSocket.

Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for Python

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

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

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

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.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Rust

A focused guide for building secure Azure Queue Storage messaging workflows in Rust.

Dev & Engineering ✓ Microsoft · Official

Fabric Capacity Manager for .NET

Manage Microsoft Fabric capacities programmatically through Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Azure CallingServer Java Legacy Maintainer

Maintain legacy CallingServer Java code and migrate it toward Azure Communication Services Call Automation.

Dev & Engineering ✓ Microsoft · Official

Azure Bot Service Python Manager

Create, manage, and configure Azure Bot Service resources and channels from Python.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Java

Query Azure Monitor logs and resource metrics from Java applications.

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis for Java

A practical Java SDK guide for captions, OCR, object detection, tagging, and smart image cropping.

Dev & Engineering ✓ Microsoft · Official

Azure Communication Common for Java

Guides Java developers through shared ACS authentication, token refresh, and communication identifier handling.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for Java

Configure secure Microsoft Entra ID authentication for Java applications using Azure SDKs.

Dev & Engineering ✓ Microsoft · Official

Azure AI Foundry Projects for .NET

Guides .NET developers through Foundry project, agent, and evaluation operations.

Related skills