skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

azure-messaging-webpubsub-java

Real-time WebSocket messaging

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/microsoft/skills --skill azure-messaging-webpubsub-java

Overview

What This Skill Does

Java SDK for Azure Web PubSub, a managed service that handles WebSocket connections at scale. Use it to send messages to individual connections, users, or groups from your server-side Java code.

Application

When to use this Skill

Documentation

Show Skills.md file

Azure Web PubSub SDK for Java

Build real-time web applications using the Azure Web PubSub SDK for Java.

Installation

<dependency>
    <groupId>com.azure</groupId>
    <artifactId>azure-messaging-webpubsub</artifactId>
    <version>1.5.0</version>
</dependency>

Client Creation

With Connection String

import com.azure.messaging.webpubsub.WebPubSubServiceClient;
import com.azure.messaging.webpubsub.WebPubSubServiceClientBuilder;

WebPubSubServiceClient client = new WebPubSubServiceClientBuilder()
    .connectionString("<connection-string>")
    .hub("chat")
    .buildClient();
Lines 1 - 27 of 308

Recommendations

Explore other random skills

All skillsMy patterns