Questions tagged [azure-signalr]

Questions about the Microsoft Azure SignalR Service

Azure SignalR Service simplifies the process of adding real-time web functionality to applications over HTTP. This real-time functionality allows the service to push content updates to connected clients, such as a single page web or mobile application. As a result, clients are updated without the need to poll the server, or submit new HTTP requests for updates.

246 questions
1
vote
0 answers

Getting ConnectionId for known UserId, or adding User to Group

I'm writing an application which uses Azure SignalR in serverless mode, since I need to transmit messages from Azure Functions. To that end, I'm using the Microsoft.Azure.SignalR.Management library to access a hub context so I can send messages.…
user2110845
  • 385
  • 8
  • 19
1
vote
1 answer

Azure SignalR on .Net Core Web API and Angular 12 facing 401 Unauthorized Error

I am trying to connect my backend server on .Net Core to my front end on Angular using the Azure SignalR service. I am getting the following error Error: Failed to complete negotiation with the server: Error: Unauthorized: Status code '401' Here…
1
vote
1 answer

How to subscribe to the Azure SignalR service in a front-end Javascript application?

I'm very new to SignalR and I'm trying to understand how to create a simple frontend application that gets notified using Azure SignalR Service. I already have a server that uses the Azure SignalR REST API to send messages to an Azure SignalR…
Ocimar
  • 53
  • 1
  • 6
1
vote
2 answers

How to use Dapr SignalR Output Binding?

It's not clear to me how to use Dapr's SignalR output Binding. If I understand correctly, SignalR works with communication between three parties: A server, which will provide functions to be called by clients, as well as being able to call…
Ocimar
  • 53
  • 1
  • 6
1
vote
0 answers

SignalR (Azure) drops web socket connection every 15 min

We have SPA (on Angular) with ASP.NET Core at the backend. We are leveraging Azure SignalR for communication. Problem: SignalR client side drops WebSocket connection every 15 mins. That's confirmed by Network tab as well as Azure SignalR service…
1
vote
0 answers

Two apps same SignalR server

I have a web API project which is configured to connect to Azure SignalR and clients can connect to it through its hub. Web Api: [Authorize] public class ClientHub : Hub { private string GroupName { get …
Fouad
  • 131
  • 1
  • 11
1
vote
1 answer

Azure speech to text Cognitive services - Audio stream input

Trying to create a code in blazor application for continuous speech to text using azure cognitive services. I am trying to use Stream of input instead of voice from Microphone. Any suggestion would be helpful. var audioFormat =…
1
vote
1 answer

IS there some how to specify dinamically the Hub Name of Azure SignalR at the negotiate of Azure Serverless Solution?

using Microsoft.AspNetCore.Http; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions.Http; using Microsoft.Azure.WebJobs.Extensions.SignalRService; namespace TheNameSpace { public static class Function { …
Marco Jr
  • 6,496
  • 11
  • 47
  • 86
1
vote
1 answer

How to handle users closing the browser with SignalR Serverless?

Looks tricky. Based on Stackoverflow and many other sources, this is the solution: connection.onclose(e => { fetch('http://localhost:7198/api/v1/Leaving?Id=' + Id, { headers: { Authorization: 'Bearer ' + token } …
Marco Jr
  • 6,496
  • 11
  • 47
  • 86
1
vote
2 answers

Can't invoke server's method from client - Error: An unexpected error occurred invoking 'SignIn' on the server

I'm build a project using SignalR. As Front I'm using .Net Core, as Back I'm using React. So in my localhost the project is working, but when i deploy this project i get an error. In azure I have created: 2 web application - one used for cliend, and…
1
vote
0 answers

Azure SignalR to call an API with connect and disconnect events in azure portal

Is there any way to call a python API from the SignalR for connect and disconnect events? I need to call my API when a new client is connected using the SignalR service on azure.
py coder
  • 11
  • 1
1
vote
2 answers

Azure function app's signalr_extension is not populated to use in signalR upstreams when creating a function app by Bicep

I created an Azure Function App by Bicep and tried to get the signalr_extension's value to use in the "upstream" configuration section of a serverless Azure SignalR Service. This is how I try to obtain this value in Bicep: var signalRKey =…
1
vote
1 answer

How to add Azure SignalR to health checks

I try to add Azure SignalR healt check using nuget package AspNetCore.HealthChecks.SignalR. I use this code services.AddHealthChecks() .AddSignalRHub( Configuration.GetConnectionString("AzureSignalR"), name: "Azure SignalR"); but…
Gadziu
  • 657
  • 7
  • 21
1
vote
1 answer

Azure Web App with Azure SingnalR - Private endpoints changes wss to https and throws CORS erros

I deployed a sample MS Blazor server application in Azure Web App and Ref. an Azure SignalR service as well from thihs Web App. 1st I made the Azure SignalR as public as below. My Web App is able to connect to the Azure SignalR. Ref. below track…
1
vote
0 answers

Getting SignalR Client to work with Azure SignalR Server

I have inherited an Azure SignalR Web API app written in ASP.NET Core 5, and I'm having trouble creating a client that works with it. I'm new to SignalR. Also, this Azure SignalR server has not been used in production, so I can't guarantee that my…