Questions tagged [signalr-2]

SignalR 2 is the second major version of the library to add real-time web functionality in ASP.NET. Use with [signalr]. For the ASP.NET Core version, use [asp.net-core-signalr].

SignalR is an asynchronous library for .NET to help build real-time, multi-user interactive web applications.

SignalR 2.0.3 was released in March 2014.

94 questions
0
votes
1 answer

keep track of current context of user action using SignalR for push notification

If you look at StackOverflow (SO) site, while you are looking at a specific thread and there is some update to that thread, SO pushes the notification to you. That means SO is aware of user context/user action (which thread you are currently…
OpenStack
  • 5,048
  • 9
  • 34
  • 69
0
votes
1 answer

SignalR 2 Websockets with ASP.NET Core on .NET Framework

I have an ASP.NET Core application, running on .NET Framework 4.6.2. I managed to run SignalR 2 by using owin-middleware. The issue is that it uses server events, instead of websockets. Is there any setup that can be done, in order to use…
Andrei S
  • 181
  • 1
  • 9
0
votes
1 answer

SignalR working with groups is not working correctly

I work with signalR. Group functionality is not working correctly. Here it is my hub: public class BasketHub : Hub { public void Login(int companyId) { string groupName = "company" + companyId; IHubContext context =…
Emir Kılınç
  • 543
  • 6
  • 15
0
votes
1 answer

SignalR - correct implementation of chat

I need to implement chat on my web project. How to implement it on one page - there are many articles about it. But I need to have ability : 1. Notify other users, that somebody logged to site (on any page, not only on chat page) 2. Notify other…
Oleg Sh
  • 8,496
  • 17
  • 89
  • 159
0
votes
2 answers

SignalR onDisconnected(bool stopCalled) getting called on File download in MVC

Hi in my application I am using SignalR to store the user and signalR connection mapping. I am adding connections and user mapping on OnConnected() event and removing connections on OnDisconnected() event. OnDisconnected event is getting called when…
Ashish Shukla
  • 1,239
  • 12
  • 23
0
votes
0 answers

why signalr can't run websocket on linux(with mono),super diff.ult..qeus-tion.(may mono's bug)

someone said: it is not working as System.Web.WebSocket is not implemented in the Mono and they are not planing to implement it this days. but mono has already implemented System.Web.WebSocket . I think there is something wrong with mono's code ,But…
qsmy_qin
  • 9
  • 1
  • 4
0
votes
1 answer

SignalR Core app deployed to Azure doesn't work over https

I've created a simple web app with SignalR Core and deployed it into Azure, and enabled websockets for app service. But after that when I try to access it using https:// it returns HTTP ERROR 500. Any idea what is wrong? Do I need to set anything…
0
votes
1 answer

Signalr example app from official documentation does not work on IIS

I've spent too much time trying to figure this out, and I'm starting to exhaust the threads here on SO that are dealing with this very issue. Feel free to link to other threads about this issue, but I've probably already consulted those with no…
0
votes
0 answers

SignlarR 2.0 chat sample ASP.NET app in Xamarin Studio Community 6.1.5

I'm trying to run the Getting Started with SignalR 2.0 and MVC 5 sample using Xamarin Studio Community 6.1.5 on Mac OS 10.10.5. In both Firefox and Chrome, the developer tools show that the request to /signalr/hubs finishes and responds with a 200,…
Becca Dee
  • 1,530
  • 1
  • 24
  • 51
0
votes
1 answer

Hub inheritance in Signalr in ASP.NET Framework

I'm using signalR to build a real-time website. I have 2 hub: NotificationHubCore NotificationHub (inherits NotificationHubCore) My solution includes 2 small projects : Domain & Web. I put NotificationHubCore in Domain, NotificationHub in…
Redplane
  • 2,971
  • 4
  • 30
  • 59
0
votes
1 answer

SignalR server to client method not working

Based on various resources the signalr code should be working, but I can't make it to send notifications from the server to client. Here is html/javascript part:
Morpheus
  • 8,829
  • 13
  • 51
  • 77
0
votes
1 answer

SignalR 2.0 - 400 Bad Request

Installed signalR sample nuget package into an existing MVC app. When negotiating connection I get the following error randomly: NetworkError: 400 Bad Request -…
ShaneKm
  • 20,823
  • 43
  • 167
  • 296
0
votes
0 answers

signalr on same tab with different credential

I know signal R maintain a different Context.ConnectionId for each tab, I was testing a scenario when someone don't close the tab and enter different credentials. How can I tackle this problem for the context id to remain the same. I have a…
bilal
  • 648
  • 8
  • 26
0
votes
0 answers

Call SignalR method from another assemblies

Let's say I have 3 projects a WebApp , a Notification project and a Business project. Both WebApp and Business projects can reference Notification assembly which contains SignalR(v2) classes. Suppose I have the following class in Notification…
0
votes
1 answer

When I should use hub context in signalr

I am new to .NET SignalR. I see most of online SignlaR examples for beginners, in a custom Hub class, there is a straight forward way to create custom Hub methods in a derived Hub class without using IHubContext object in those Hub methods. Under…
Thomas.Benz
  • 8,381
  • 9
  • 38
  • 65