signalr

404:signalr/hubs for signalR chat application

爱⌒轻易说出口 提交于 2019-12-11 11:08:40
问题 I am trying to create a chat application using signalR using VS2012 web in a website. But its showing me error like this: Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:50780/WebApplication1/WebApplication1/signalr/hubs Uncaught TypeError: Cannot read property 'client' of undefined I have added RouteTable.Routes.MapHubs(); to Global.asax But why should its showing me this error when its opening for other's system. 回答1: On the page where you're

How to close connections when cycling a SignalR hub

青春壹個敷衍的年華 提交于 2019-12-11 10:49:54
问题 I have a SignalR HUB that maintains an in-memory repository of the various connected clients, which contains some data that we use to process requests. Ideally, these clients will stay connected all the time. The problem I have is when we need to push a patch to the hub, we publish it, and recycle the server. This occurs quickly enough that the clients still maintain their connection, but since the website has been recycled, the memory used by the hub has been cleared and the repository no

How can I push data from Informix to .NET server in real time?

回眸只為那壹抹淺笑 提交于 2019-12-11 09:44:57
问题 I need to push data from Informix to my .NET server in real time, just like we can do it automatically as soon as there is a change in the database with SignalR and MS SQL Server. Can this be done? Informix doesn't seem to have inbuilt functionality that would allow .NET server to know whenever there is a new record in the database. I have not been able to find a solution to this even after hours and hours of searching with Google. 回答1: Since Informix 11.70, Informix has supported a Change

Failing to connect to a SignalR hub from Javascript

假如想象 提交于 2019-12-11 09:28:17
问题 I'm trying to connect to a SignalR hub that is located in a seperate Web Api project from a MVC project but the connection keeps failing with error. I'm testing locally but apparently if you use IE it will handle Cross domain for you. In Chrome http://localhost:53453/signalr/negotiate?clientProtocol=1.5&connectionData=%5B%7B%22name%22%3A%22gweventhub%22%7D%5D&_=1430342757730 Failed to load resource: the server responded with a status of 404 (Not Found) In IE Connection Error: Error during

How to iterate over users in asp.net core SignalR?

与世无争的帅哥 提交于 2019-12-11 09:01:45
问题 In a SignalR application on .net core, I have a working piece of code similar to the following: public Task SendPrivateMessage(string user, string message) { var sender = Context.User.Claims.FirstOrDefault(cl => cl.Type == "username")?.Value; return Clients.User(user) .SendAsync("ReceiveMessage", $"Message from {sender}: {message}"); } This sends a message from the currently connected user, to the specified user. Now I'd like to send an individual message to every user connected; something

SignalR - System.Numerics.Vectors v4.1.4 not found when using AspNetCore.SignalR.Client nuget package

ぃ、小莉子 提交于 2019-12-11 08:53:44
问题 I am trying to follow the pattern shown in this question. where I'm using: HubConnectionBuilder() in my WPF client app (.NetFramework 4.7). To do this, it seems to me I need to add a reference to: Microsoft.AspNetCore.SignalR.Client in my WPF app. However, I'm getting this error when I try to build: System.IO.FileNotFoundException: Could not load file or assembly 'System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system

SignalR - ASP.net required for the client?

别等时光非礼了梦想. 提交于 2019-12-11 08:22:47
问题 I am trying to figure out if ASP.net on the client side in order to support SignalR. I would rather not be reliant on asp.net if at all possible for the webclient. I haven't found anything thus far that leads me to believe that it is required, but I could be overlooking something obvious. EDIT: As noted by the comments my question was not correct. I am ultimately trying to find out if ASP.net is required to use SignalR. From Lain's comments below it doesn't sound like it is which is excellent

Possible SignalR bug in Xamarin Android

混江龙づ霸主 提交于 2019-12-11 07:51:23
问题 When using Xamarin Android application as a SignalR client, I encountered this strange behaviour. Having: public GameClient() { _connection = new HubConnection("url"); _proxy = _connection.CreateHubProxy("GameHub"); _proxy.On("SendMove", (string playerID, string fromID, string toID, int actions, int lastUpdate) => { if (OnMoved != null) OnMoved(playerID, actions, fromID, toID, lastUpdate); }); causes System.MissingMethodException: Method not found: 'Microsoft.AspNet.SignalR.Client

Is it possible to create simple REST services with SignalR?

穿精又带淫゛_ 提交于 2019-12-11 07:26:44
问题 I recently discovered SignalR, seems that it can fit into high-load projects with hundreds of concurrent connections. But as far as I can see, it is only supports full communication type of software (real-time). So here is the question: is it possible to create REST services with SignalR without client code & persistent connections? Basically I just need that asynchronous high performance server side part from SignalR & HTTP request handler (if exists). Regards. 回答1: Nope that's not SignalR's

Refreshing List of news using SignalR

元气小坏坏 提交于 2019-12-11 06:51:27
问题 I have an asp.net MVC 4.0 application. In one of my views, I wish to display a list of current news ( IEnumerable<News> ) coming from a Web API. The thing is that the list of news may or may not be updated frequently. In other words, on an average day, the backend team may have to enter from 5 to 45 news using the backend CMS. I need to figure out a way to refresh the user’s list of news within his browser without, of course, refreshing the entire web page. My initial thought would have been