signalr

Object undefined error at var chat = $.connection.chat; while using SignalR

删除回忆录丶 提交于 2019-12-12 07:49:13
问题 I tried installing SignalR library to create a sample chat application. I believe I have followed all steps given in documentation. I am not sure what could be a reason of failing. It is failing when it creates a chat object. I am using VS2010 and I downloaded SignalR using VS2010 package download utility. Is anyone had an issue with this? Thanks, Samir Thanks Hurricanepkt for helping me out. Yes, I did get all signalR via nuget, using VS2010 'Add Library Package' dialog box. I was getting

Sharing a SignalR hub between a WebApi and MVC project

♀尐吖头ヾ 提交于 2019-12-12 07:13:13
问题 Is there a recommended approach to sharing a SignalR hub across two applications? The actual situation is a public facing WebAPI project and an internal MVC WebApp. What I'd like to do is call methods on a SignalR hub from the WebAPI project and have the results of these methods pushed to clients connected via the MVC app. Would the best option be to create a third 'Hub' project and have both projects connect to that? If so, how are the hub instances managed? Can both applications get a

SignalR: How to send data to IConnected.Connect()

 ̄綄美尐妖づ 提交于 2019-12-12 07:09:41
问题 I implement the Connect() method on IConnected interface to add new connections to the correct groups. This works well except for one thing: in order to add the user to the correct group, I need to send a value to be read in this method. I tried adding property to the client hub: var uIHub = $.connection.uIHub; uIHub.SessionType = "Edit"; But it's not accessible from the Connect method: if (string.IsNullOrEmpty(Caller.SessionType) || Caller.SessionType == "Edit") { sessionId = WAFContext

Pushing data from SQL Server to Web Application with SignalR

a 夏天 提交于 2019-12-12 07:09:33
问题 My ASP.NET MVC 4 Web application is displaying frequently updated data to the client. Data originate from an external source (an application installed on the server) and processed by SQL Server 2008 R2. Currently the data flow is quite traditional: clients polls from ASP.NET, ASP.NET polls in its turn from SQL Server. To avoid polling (and now that I require a real-time interaction between the users of the Web Application), I am changing the approach to push, using signalR to broadcast data

Operation was cancelled exception when trying to connect signlar with my app?

折月煮酒 提交于 2019-12-12 05:22:41
问题 Am trying to connect my application sample signal r application. I works well and established connection when using javascript but while using android am getting java.lang.InterruptedException: Operation was cancelled exception don't know where am making mistake let me post my code this is the simple hub connection class: namespace ChatRoomApplication { public class ChatHub : Hub { public void Send(string name, string message) { Clients.All.sendMessages(name, message); } } } This is my client

SignalR version 1.2.2 getting Error: The controller for path '/function () { _pageLoaded = true; }' was not found or does not implement IController

夙愿已清 提交于 2019-12-12 04:45:22
问题 I am using SignalR version 1.2.2 with ASP.NET MVC 4. I set the signalR connections to a page inside a defined "Area" Regardless though, this seems to come at the SignalR script load. Because if I access a view defined in the main area outside of the areas sections, I still get this error: System.Web.HttpException (0x80004005): The controller for path '/function () { _pageLoaded = true; }' was not found or does not implement IController. at System.Web.Mvc.DefaultControllerFactory

Web server won't allow more than 4 connections

北城以北 提交于 2019-12-12 04:05:49
问题 I am running WEB.API backend with Angular front end, using SignalR (2.2.0) with almost constant data changes. My problem is that I am able to connect only 4 clients, 5th client would not connect. It will load all web page data, but SignalR won't connect. As soon as I disconnt one of the 4 already connected clients, the 5th one would connect with not problems. This is running on Windows 8.1 with IIS 8.5 on separate LAN. IIS settings is default. Where shall I start looking to solve this? Thank

0x800a138f - JavaScript runtime error: Unable to get property 'client' of undefined or null reference

﹥>﹥吖頭↗ 提交于 2019-12-12 04:05:42
问题 There are several similar questions but none of the answers seem to work. I have 3 different web sites (one page each) built using Visual Studio Express 2013 Web. They all use signalR. In fact one is the example SignalR.Sample that can be downloaded from Nuget. They all work on IIS Express. They all USED to work on IIS. They all give the above error on IIS using Internet Explorer set to debug. FireFox and Chrome just give the webpage without starting signalR. The exact same 3 sites work on

Signalr example app from official documentation does not work on IIS

痞子三分冷 提交于 2019-12-12 03:47:03
问题 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 success. I'm following Microsoft's Signalr example app from this url: https://docs.microsoft.com/en-us/aspnet/signalr/overview/getting-started/tutorial-getting-started-with-signalr I'm running IIS 8.5 on Windows Server 2012 R2, SignalR 2.2.1, and .Net

Calling ApiController causes SignalR to stop working

风流意气都作罢 提交于 2019-12-12 03:33:04
问题 I have a monitoring/logging hub that uses SignalR (2.2.1) and Azure Mobile App for authentication. Regardless of whether the MobileAppController attribute is present on the ApiController, and even if the ApiController contains no hub calling code, calling /api/values from a browser immediately kills my SignalR hub. I have to restart the web app to get it to work again. In the meantime, the webpages will keep trying to connect/reconnect. The striped-down controller looks like public class