Questions tagged [azure-web-pubsub]

The Azure Web PubSub Service helps you build real-time messaging web applications using WebSockets and the publish-subscribe pattern easily. This real-time functionality allows publishing content updates between server and connected clients (for example a single page web application or mobile application). The clients do not need to poll the latest updates or submit new HTTP requests for updates.

Documentation: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/

33 questions
4
votes
2 answers

GET JWT Bearer token for Azure Web PubSub Rest API to authenticate

I am working on a project, in which I am building a publish-subscribe system through Azure Web PubSub Service. The JavaScript clients (subscribers) are connected through socket and able to receive the published message on the Hub and in the Group.…
HarisH Sharma
  • 1,101
  • 1
  • 11
  • 38
3
votes
1 answer

React Websocket gets inactive after some time

I am using Azure Pub-Sub Service for Chatting module in a ReactApplication, I am creating this connection using Websocket. let ws = new WebSocket(token.url); ws.onmessage = (data) => { //Messages Logic } when i am in other tabs, or…
Manjunath G
  • 167
  • 2
  • 10
3
votes
0 answers

when to create different hubs vs group in azure web pub sub

I am bit confused about the right approach or what are the deciding factors to consider when creating separate hubs vs separate groups within a hub. In my app there are 2 cases where we are using pub sub: Multiple user have access to same data. In…
Deewendra Shrestha
  • 2,313
  • 1
  • 23
  • 53
3
votes
1 answer

What are the differences between Azure Web PubSub and Event Grid/Event Hub?

It seems to me that Azure Web PubSub is a combination of both Event Grid and Event Hub using web sockets, instead of HTTP. However, I'm not 100% sure and could not find any articles that have a direct comparison between the 3 services.
TDao
  • 514
  • 4
  • 13
2
votes
1 answer

How to use Azure PubSub in React Native?

I'm trying to build a chat app with React Native, and I'm trying to use Azure Web Pub Sub for that. I'm following the docs so I added @azure/web-pubsub dependency to my project, and copied this piece of code that I found on the docs: // other react…
abdou-tech
  • 687
  • 1
  • 8
  • 16
2
votes
0 answers

Is there a way to throttle/rate limit messages sent through Azure Web PubSub?

We would like to use Azure Web PubSub to enable browser clients to exchange messages. Ideally, both clients would get a token from a backend service (e.g. serverless function) that gives them permission to join and send messages to a certain group…
1
vote
1 answer

Authentication between Azure Web PubSub and server

There is a simple ASP.NET app as an event handler Server: WebApplicationBuilder builder = WebApplication.CreateBuilder(args); builder.Services .AddWebPubSub(options => options.ServiceEndpoint = new ServiceEndpoint(WebPubSubConnectionString)) …
Darkside
  • 470
  • 3
  • 20
1
vote
2 answers

How to enable diagnostics with bicep for Azure Web PubSub?

The Azure WebPub bicep documentation mentions nothing about how to enable diagnostic settings to stream logs to a log analytics workspace, but the Azure Portal has an interface for…
1
vote
1 answer

Client permissions on serverless Azure Web PubSub

I've successfully followed the Tutorial - Create a serverless chat using the Azure Web PubSub service. Now I require giving the clients different permissions based on their ID. Also, add them to different groups. The documentation on this matter is…
rodripf
  • 575
  • 2
  • 11
  • 24
1
vote
0 answers

Azure Web PubSub disconnected event doesn't work on closed web socket

When I close the connection with a web socket by ws.close() on a client side. The disconnected Azure Function is not triggered. Please help! My binding is: { "bindings": [{ "type": "webPubSubTrigger", "direction": "in", "name": "data", "hub":…
0
votes
0 answers

How to process an audio stream using Azure Web Pubsub and Azure Function apps (serverless)

We are currently making use of Azure API management + Web PubSub to establish a websocket endpoint. An Azure Function App listens to the websocket to process the incoming messages. This works fine for notifications/chat scenarios but we are…
0
votes
2 answers

Correct URL for Azure Webpubsub on local functions

I'm just trying to connect my azure functions with my azure webpubsub. When the functions are executed in the azure Portal everything works like a charm. The endpoints which are located under /api (e.g. /api/negotiate) are all resolved. To improve…
Felix
  • 17
  • 5
0
votes
1 answer

Azure Web PubSub ClientWebSocket "The server returned status code '401' when status code '101' was expected."

I am trying to use the Web PubSub Service resource in Azure, and have created a basic client using ClientWebSocket. Everything is fine, it sits there waiting for something to come through, however, after 36 hours or so (take that time with a pinch…
percentum
  • 113
  • 3
  • 13
0
votes
1 answer

Unable to generate clientAccessUri for WebPubSubClient in typescript with @azure/web-pubsub and @azure/web-pubsub-client

I'm trying to use the Azure Web Pun Sub Service in my vuejs application which does the publish & subscribe both to a specific group (which is supposed to create dynamically and add users to this). Looking into the examples provide for…
0
votes
0 answers

Right-hand side of 'instanceof' is not an object, jsonwebtoken/sign.js

How to fix this error "Right-hand side of 'instanceof' is not an object, jsonwebtoken/sign.js"? I'm trying to create a chat web app in VueJs web framework using @azure/web-pubsub and @azure/web-pubsub-client packages. Initially I got errors related…
1
2 3