signalr

How to use SignalR in an Azure function app?

六月ゝ 毕业季﹏ 提交于 2021-01-20 16:54:50
问题 I'm building a small game that will be driven by web socket using SignalR on one hand and Azure function app on the other hand. Basically, the user establishes a web socket connection with the server and sends/receives a message from it. This is mainly done this way because players can discuss with each other in real-time. Besides, I'd like to have some Azure function apps that run and execute some instructions. For example, every minute, an app would make some monsters move. If these

How to use SignalR in an Azure function app?

▼魔方 西西 提交于 2021-01-20 16:54:18
问题 I'm building a small game that will be driven by web socket using SignalR on one hand and Azure function app on the other hand. Basically, the user establishes a web socket connection with the server and sends/receives a message from it. This is mainly done this way because players can discuss with each other in real-time. Besides, I'd like to have some Azure function apps that run and execute some instructions. For example, every minute, an app would make some monsters move. If these

How to use SignalR in an Azure function app?

时光怂恿深爱的人放手 提交于 2021-01-20 16:50:26
问题 I'm building a small game that will be driven by web socket using SignalR on one hand and Azure function app on the other hand. Basically, the user establishes a web socket connection with the server and sends/receives a message from it. This is mainly done this way because players can discuss with each other in real-time. Besides, I'd like to have some Azure function apps that run and execute some instructions. For example, every minute, an app would make some monsters move. If these

Target specific user in group

爷,独闯天下 提交于 2021-01-07 06:31:52
问题 ASP.NET Core SignalR I know we can send messages to a group. I know we can send messages to a user. Is there a way to send messages to a user in a group, i.e. the intersection of the previous audiences. From what I understand: A group is a collection of connections with group name in metadata, and a user is a collection connections with user name in auth claims. A user in a group would be the collection of connections which belong to the specific user and are part of specific group. Afaik

User can not see reply message in chat app using signalr + angular

依然范特西╮ 提交于 2021-01-07 02:34:43
问题 I have chat application and in that backend is done by asp.net core and front end is in angular. Everything is working fine, just problem is as per below : Let's say User A send message to User B so User B see that message instantly. But when User B reply back to User A then User A can not see message instantly, But if User A refresh page OR click on any other username and click back on User B then he can see that reply message of User B. So any one can guide me what can be problem for this.

Send messages via SignalR HubContext from method in project outside where Hubs are located

▼魔方 西西 提交于 2021-01-04 05:39:30
问题 I have a WebAPI project where the API, Service and Data layers are all in separate projects of the same solution. As part of a method in my Service project, I want to send a message to the connected clients of a hub in the API project. So far all of the examples I have found have everything in a single project and use a controller as the example sending a message via a hub. I've tried dependency injection (Autofac) however I am unable to get a reference to the MessageHub. [HubName("messages")

Autofac injection of IHubContext SignalR MVC

一曲冷凌霜 提交于 2020-12-26 08:09:33
问题 I am trying to get SignalR working with Autofac. I have a repo of a stripped back version of what I have done here: https://github.com/justsayno/signalr-autofac This is adapted from which works using GlobalHost : https://github.com/sstorie/experiments/tree/master/angular2-signalr That works just fine using hte GlobalHost object. I have attempted to follow the documentation on Autofac's site about how to inject SignalR services but I cannot get it to work. This is my config file for

Does Azure Functions throw 503 errors while app settings are being updated?

梦想与她 提交于 2020-12-13 11:30:22
问题 Whenever I update my application settings for a Function app and hit the Save button on Azure Portal, I observe that this action temporarily stops my function app while the changes are being persisted to the active worker(s). I need to understand if this is indeed the case or if I'm making a false assumption. What happens exactly when app settings are updated in the portal? 503 is thrown while active worker(s) are being updated OR Another worker is specialized with the new host file. The old

Inject SignalR IHubContext into service layer with Autofac

霸气de小男生 提交于 2020-12-09 06:34:32
问题 In an app running Framework 4.72, not .NET Core, I'm trying to inject a SignalR IHubContext into a Web API 2.x service. I have my solution broken into three projects, web, service, data. The SignalR hub is in the web layer. I have background code that runs in the service layer and when complete I need it to send a mesage via the hub. This background task is not initiated by the controller. My Global.asax is pretty standard: protected void Application_Start() { GlobalConfiguration.Configure