Questions tagged [signalr-service]

Use SignalR-Service for Microsoft hosted Signal R service on the Azure Platform. For generic use, just use SignalR

SignalR was added as a service on the Azure hosting platform in September 2018, allowing you to write SignalR apps / components and deploy them to a hosted Azure Cloud instance.

Azure SignalR Overview:

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.

21 questions
6
votes
2 answers

Send message to a group of users in SignalR Service in Azure Functions

Looking at the docs for the SignalR bindings to send a message to a specified user you include the UserId property on the message as such - [FunctionName("SendMessage")] public static Task SendMessage( [HttpTrigger(AuthorizationLevel.Anonymous,…
Kirschstein
  • 14,570
  • 14
  • 61
  • 79
5
votes
2 answers

Where to find documentation for SignalR Service output binding for Azure Function on .Net 5.0 C# dotnet-isolated

I am building an application based on serverless architecture. The part, where i am stuck includes: SPA Web UI, C# .Net 5.0 isolated process Function (dotnet-isolated), Azure SignalR Service (serverless mode). There is a lot of documentation and…
4
votes
1 answer

Azure SignalR Service Upstream not delivering messages to an Azure Function App

I have set up a SignalR Service account in Azure. I have set this to Serverless. I have set the Upstream URL to https://THE-NAME-OF-MY-FUNC-APP.azurewebsites.net/runtime/webhooks/signalr?code=THE-DEFAULT-KEY-FROM-FUNC-APP-APPKEYS_HOST_DEFAULT This…
Darren Wainwright
  • 30,247
  • 21
  • 76
  • 127
3
votes
0 answers

Azure signalr service context with Angular

Wondering if anyone has experience in the azure signalr service(v1.04) and angular cli(v6+). Having some issues understanding how to get the client context after connecting to the hub. Any thoughts? Here's the context of the hub, any help would be…
Chris
  • 41
  • 4
2
votes
1 answer

How to trigger a SignalR command outside of the front end

I feel like I'm either missing the point of the SignalR service or I've got the architecture of it wrong. Using an Azure SignalR service I've got the front-end to front-end communication working as such; Startup.cs public void…
2
votes
1 answer

SignalR issue while Scaling out azure webapp

I have existing Asp.net mvc azure webapp running on .net framework 4.6.2. I am using SignalR for real time operations. Everything works fine until I enable autoscaling. After enable autoscaling I am not getting messages everytime. I know this is…
Singh
  • 554
  • 6
  • 22
2
votes
2 answers

Azure SignalR Service in ASP.NET Core App

I'm reading the very limited information about Azure SignalR service as well as the quick start guide and want to make sure I'm understanding this correctly. We still seem to have a hub and if I understand this correctly, the function of Azure…
Sam
  • 26,817
  • 58
  • 206
  • 383
1
vote
1 answer

signalr service azure function CORS works on some machines, fails on others

I've run into an odd situation where my web app is able to connect to signalr service (serverless) through an azure function on most machines, but when I try to connect on my work machine, it does the initial OPTIONS request for…
1
vote
0 answers

Accessing the number of connected users in a Azure Serverless SignalR users group (dotnet-isolated and Azure Functions V4)

The following code adds a user to a signalR group: [Function("AddToGroup")] public SignalROutputEntity AddUserToGroup( [HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "addtogroup/{groupName}/{myId}")] HttpRequestData req, …
Arash
  • 3,628
  • 5
  • 46
  • 70
1
vote
1 answer

Is there a way to customize json settings for Azure Function SignalR Service Binding (Microsoft.Azure.WebJobs.Extensions.SignalRService)?

I am using SignalR Service output binding for Azure Function. When I add some arguments to the message, it is being serialized by the library Microsoft.Azure.WebJobs.Extensions.SignalRService. It is possible to use either System.Text.Json or…
Ilya Chernomordik
  • 27,817
  • 27
  • 121
  • 207
1
vote
1 answer

Azure SignalR Service running multiple hubs in different modes

When SignalR Service came out, we were able to run the Hub in Classic mode, this allowed communication from both serverless functions (REST API) and asp.net core hubs (WS). Now according to the warning on the azure portal, the classic mode seems to…
PsMaster
  • 131
  • 2
  • 10
1
vote
0 answers

Authorization with Azure SignalR service fails because IServiceCollection is null

In a project I have a SignalR hub which can do authorization. The simplified version of the hub looks like this. public class WeatherHub : Hub { public async Task SubscribeForWeatherChange(string city) { // Will never throw. Based on…
Yavuz
  • 630
  • 6
  • 20
1
vote
1 answer

Custom SignalR Serverless Access Token (JWT) within negotiate method?

Is it supposed to be possible to generate your own JWT within the negotiate function for SignalR Serverless AND have that same JWT passed back to you when the connection event from EventGrid is triggered? When my EventGridTrigger executes upon a new…
JamesD
  • 85
  • 1
  • 5
1
vote
1 answer

Error 500 on $.connection.hub.start().done()

Inside my existing application the get request to http://localhost:xxx/signalr/negotiate returns a 500 which I am unable to get more information about to find the actual cause I have tried creating a brand new MVC project and setting up SignalR -…
1
vote
1 answer

Azure SignalR API Add to Group

I have been using the Azure SignalR API just fine for sending messages to groups, everyone and single users. I have a problem adding a user to a group though. I execute the request as per…
mathew
  • 185
  • 4
  • 20
1
2