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
0
votes
1 answer

Unable to Connect Azure Web PubSub Service with Postman WebSocket

I have generated Client Access URL using Client URL Generator with all access, which is working fine in Quickstart website provided by azure, But if i try the same link in postman websocket gets connected then if i send { "type":…
0
votes
1 answer

Azure WebPubSub Service missed broadcast messages in group

We have a carline checkout system, where school users: Release coordinators Teachers Parents use app to check-in to app and app sends real-time message on school uniquely created group so that all receive that parent has arrived, now release those…
maverickosama92
  • 2,685
  • 2
  • 21
  • 35
0
votes
1 answer

Is there a way to use decorators to bind a route to azure WebPubSub events using azure functions using the V2 Python programming model?

Azure functions recently changed their programming model for python as described here, https://techcommunity.microsoft.com/t5/azure-compute-blog/azure-functions-v2-python-programming-model/ba-p/3665168 and I am trying to port some code. In v1 you…
0
votes
1 answer

Azure Functions and webPubSub : get the number of clients

I'm trying to setup a simple chat app that uses WebSockets in a serverless way. I'm using Azure's WebPubSub service and the code is hosted in an Azure Function App. I'm using javascript and basing my code in this sample app:…
0
votes
0 answers

CORS error connecting to Azure Web PubSub in React app with Azure Functions backend

I have a React TS browser app with Azure Functions back end that I am trying to implement WebSockets in using Azure Web PubSub. Following the guide at…
Neil
  • 159
  • 10
0
votes
1 answer

How do I get the number of clients connected to my azure webPubSub?

I'm trying to build a small app with azure webpubsub. I based it on this tutorial and I'm using javascript. I started out by creating a function with a binding to my WebPubSub like so: { "disabled": false, "bindings": [ { "name":…
mrietschel
  • 11
  • 2
0
votes
1 answer

How to Mock Azure.Messaging.WebPubSub.WebPubSubServiceClient

The class WebPubSubServiceClient implements no interface, so how do I mock it? I could use the decorator pattern like shown in this answer https://stackoverflow.com/a/74096260/2787333 but then I saw this in the…
Simon K
  • 215
  • 2
  • 11
0
votes
1 answer

Azure WebPubSub memory leak

I have a Web App and I noticed that after a while it restarts due to lack of memory. After researching, I found that memory increases after sending a message via WebPubSub. This can be easily reproduced (sample): using Azure.Core; using…
Oleksandr
  • 81
  • 2
  • 12
0
votes
1 answer

Azure Web PubSub browser client not receiving messages

I am trying to use Azure Web PubSub to send messages to a browser from a Node app running o na server. I send messages to a group via the Node app, and in the Azure Cloud shell I can see that the messages can be received by the Azure CLI. But the…
Mike Marshall
  • 7,788
  • 4
  • 39
  • 63
0
votes
1 answer

Connecting Azure Web PubSub Client Disconnects others

I have a scenario where I have 2 c# ClientWebSocket connected to an azure Web PubSub. They can communicate fine. I then disconnect client 2 (call CloseAsync()). The Azure web trigger for disconnect works, and informs client 1 that client 2 has…
0
votes
1 answer

dead lettering in Azure event grid does not work

As per the Microsoft documentation, Event Grid does not implement retry on specific errors like 400, 413, 401. In such cases Event Grid will either perform dead-lettering on the event or drop the event if dead-letter isn't configured. So I enabled…
Rizwana
  • 3
  • 2
0
votes
1 answer

Why can my azure PubSub subscriber not recieve from my publisher

I am seeking to use groups within Azure PubSub, but it appears that either my publisher and subscriber are not both joining the same group somehow, or my serverless functions are not handling the broadcast after the message gets published. The…
amanill
  • 1
  • 2
0
votes
1 answer

Azure APIM throws error for WebSocket API due to Connection: Keep-Alive,Upgrade

I have REST and WebSocket APIs on the Azure API Management services portal. WebSocket is redirecting to different Web Pubsub service based on input parameters from clients/frontend for different development environments. When hitting WebSocket api…
0
votes
1 answer

Azure PubSub / JSON subprotocol / deserialize JSON payload

So JSON is going to be around for awhile, and I'm going to have to learn how it works things out.... In Azure pubsub, I send a message like this: var json = System.Text.Json.JsonSerializer.Serialize(<> ); await…
codeputer
  • 1,987
  • 3
  • 19
  • 45
0
votes
1 answer

Azure Function Binding Types - The binding type(s) 'webPubSubTrigger' were not found in the configured extension bundle

I'm trying to trigger an Azure Function when a Web PubSub message is published. According to the example in this article, I should be able to use the following to trigger a function when a new message is sent to a specific hub... { "disabled":…