-
user1
c# asp.net-mvc-3 signalr signalr-hub
I am using signalr and asp.net MVC3 to build a sample chat application. Here is what my signalr hub looks likepublic class MyHub:Hub,IDisconnect {public Task Join(){string username = HttpContext.Current.User.Identity.Name;//find group based on usernamestring group = getGroup(username)return Groups.Add(Context.ConnectionId, group);}public void doStuff(){string group = getGroup();Clients[group].doStuffOnBrowser();} }My problem is that my app crashed when the page loads. on stepping through with th
-
John Hpa
.net signalr-hub signalr.client
When is the SignalR Hub OnDisconnected raised on server side, for the the .net client that crash or close without calling the Stop method?I am testing with the SignalR .NET client, not the javascript client. If I call the Stop method on the client, the Hub will raise OnDisconnected method immediately.But if I close the client or kill the process, the Hub will raise OnDisconnected method only after about 10 seconds. How can I detect instantly that the client is disconnected?
-
Raph
azure asp.net-web-api signalr azure-web-sites signalr-hub
I got this exception with SignalR, deployed in Azure WebSites. It works fine in debug environment. It’s SignalR 1.0.1 and I use .NET MVC and WebApiThe data protection operation was unsuccessful. This may have been caused by not having the user profile loaded for the current thread’s user context, which may be the case when the thread is impersonating.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information ab
-
Mark Webb
ios signalr signalr-hub
I’m trying to integrate an iOS app of mine to work with a MVC3 (framework 4) SignalR program that we have set up on a development server on our local network. The website that has been created for this works fine throughout our network.However when trying to use the SignalR iOS Client it gives the following error:*** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Incompatible Protocol Version’After using some NSLog() within the SRConnection.m I figured out
-
Pitamber Tiwari
asp.net-mvc-4 http-status-code-404 signalr signalr-hub
Here is what I did. I used nuget to get the SignalR for my MVC4 project. Created a MyHub class in my controller (SignalRTestController.cs) In the Index Action, tried to broadcast a message from outside the hub and returned the view. In the View, referenced all the scripts and /signalr/hubs.Problem is /signalr/hubs not being found (throws 404).My project has areas and is structured as shown:MVCProjectAreasSubFolderControllerSignalRTestController.csModel ViewIndex.cshtmlController Model View Scri
-
Rajubhai
asp.net signalr signalr-hub
Hello friends I have developed many to many chat application using signal R it is working perfectly fine.But i am getting one problem in developing one thing..that is typing message to the reciever for example:- there are two user online user x and user y.now when user x is typing message..on user y window it should come..”user x is typing message..” but when i send this message to group it is getting displayed on both screen..I want to display it on reciever screen onlyThis is the codepublic v
-
Svendberg
asp.net-web-api signalr signalr-hub
When i recycle my Application Pool for the site where the SignalR hub is running, the javascript clients is unable to reconnect. But everything is OK if the client do a refresh on his browser.In the clients console log, these lines repeat multiple times every second after a reset of the app pool: ( i have replaced the connection token with abcd )LOGG: [15:51:19 UTC+0200] SignalR: Raising the reconnect event LOGG: [15:51:19 UTC+0200] SignalR: An error occurred using longPolling. Status = parser
-
3nigma
asp.net asp.net-mvc-3 asp.net-mvc-4 signalr signalr-hub
I am trying to get a hold on SignalR and dove right into ChatRI started out by creating an mvc3 application and writing down my own implementation, keeping the basic functionality of the code from the git. It didn’t work out, so I revoked my own changes and ended up with an 1:1 copy of ChatR without any of my enhancements – still didn’t work. So I copy/pasted the source code into my project and it still won’t fire up.Chrome gives me the following 2 javascript errors:Uncaught TypeError: Object f
-
JMorgan
signalr signalr-hub signalr.client owin
I am working on an application to perform context synchronization between multiple web hosted applications using SignalR. The client machine instantiates a host using the SignalR Owin host and the applications connect to it with a no-proxy version of the JS Client. The issue I am having is that the “Client” applications are hosted in SSL environments the SignalR host is not (as it is constrained to the local machine). If I try to connect to the Hub from a standard non-SSL website hosting the
-
Rajubhai
javascript jquery asp.net signalr signalr-hub
I am making sample chat application using signal R but my keyup event is getting dead.I have used clone This is my sample code//keypress event of textbbox here..$(“.ChatText”).live(‘keyup’, function () {if($(“.ChatText”).val().length > 0){alert(‘test’);var messsage_typing=$(“#hdnUserName”).val() + ” is typing…”;var strGroupName = $(this).parent().attr(‘groupname’);if (typeof strGroupName !== ‘undefined’ && strGroupName !== false)chat.server.send($(“#hdnUserName”).val() + ‘ : ‘ + mes
-
Kate Gregory
signalr signalr-hub
When you use SignalR, in your HTML you need to reference the following two scripts: <script src=”~/Scripts/jquery.signalR-1.0.0.js”></script> <script src=”/signalR/hubs”></script>The second one is for a JavaScript hub proxy which will be auto generated. Everything works fine. However what happens if the JavaScript Hub Proxy generation is disabled somehow, perhaps by setting DisableJavaScriptProxies property (https://github.com/SignalR/SignalR/commit/7e974f4e92551a26f3e3e0
-
akee seth
asp.net signalr signalr-hub
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 undefinedI have added RouteTable.Routes.MapHubs(); to Global.asax But why should its showing me this error when its opening for other’s system.
-
Hannan Hossain
signalr backbone-views signalr-hub signalr.client
I have a signalR server queue hab. I am trying to start the server and send a messege to the server when a button is clicked in my SearchResultListItemView view. But can not working and I am getting the error “Uncaught TypeError: Cannot read property ‘queue’ “.This is my SearchResultListItemView view where i have to call the signalR server when the a click event is occured. I just want to sent some value to the server on click. Then I will sent response to all other client to load changes. How c
-
Ian Mercer
jquery asp.net-mvc signalr signalr-hub
i’m try to learn signalr and this error i’m founded it.Cannot read property ‘chatHub’ of undefined.$(document).ready(function () {var chat = $.connection.chatHub;$.connection.hub.start();});and hub file is:namespace TestSignalR.Web.Hubs { public class ChatHub : Microsoft.AspNet.SignalR.Hub {public void Send(string msg){ChatData chat = new ChatData();chat.Msg = msg;chat.UserName = HttpContext.Current.User.Identity.Name;chat.Date = “? at ” + DateTime.Now.ToString(“hh:mm tt”);Clients.All.broadCastM
-
athspk
asp.net-mvc-3 signalr signalr-hub signalr.client
I’m a newbie in SignalR. I’m trying to do this Progress Bar example. I can’t download and install the packages via NuGet, cause there is a proxy in my work that denies the access. So I include de DLLs and the scripts in project by myself.My view code is below:<h2>@ViewBag.Message</h2> <input type=”button” id=”bookButton” value=”Book flight” /> <br /> <b>Status:</b> <span id=”msg”></span> <hr /> <input type=”but
-
N. Taylor Mullen
signalr signalr-hub signalr.client
I’ve been trying to get a javascript signal-r client working against a self-hosted owin server. And am running into this issue. I’ve tried both proxies and no proxy methods both with the same result of the and error “SignalR: Error during negotiation request: undefined”. I’ve been able to get the cross-domain sample to run without any issues and cannot figure out what I am doing wrong, anyone have any ideas?The browser console gets logs an attempt to negotiate then I get the failure.Server/Hu
-
SDG – Shubh Dasgupta
asp.net-mvc-4 signalr signalr-hub
I have a MVC 4 application which has a register page.The code for hub is as follows:-using System; using System.Collections.Generic; using System.Linq; using System.Web; using SignalR.Hubs;[HubName(“messageHub”)] public class MessageHub : Hub {/// <summary>/// Broadcast the message to all clients/// </summary>/// <param name=”message”>message to be broadcasted</param>public void Broadcast(string message, string messagetype, string messagetitle){this.Clients.showMessage(me
-
RedBricks
system.reactive signalr signalr-hub
I am trying to implement push notifications using signalR hubs. I have a sample code, which when I run, I get an error saying JavaScript runtime error: ‘Rx’ is undefinedThis error comes in the dynamic signalr/hubs file. I have added all the necessary Javascript references i.e., jquery, signalR and signalr/hubs.What am i missing ?My code looks something like this:Global.asax file has thispublic class Global : System.Web.HttpApplication{protected void Application_Start(object sender, EventArgs e)
-
polonskyg
signalr signalr-hub signalr.client
I’m trying to add SignalR to my project (ASPNET MVC 4). But I can’t make it work.In the below image you can see the error I’m receiving.I’ve read a lot of stackoverflow posts but none of them is resolving my issue.This is what I did so far:1) Ran Install-Package Microsoft.AspNet.SignalR -Pre 2) Added RouteTable.Routes.MapHubs(); in Global.asax.cs Application_Start() 3) If I go to http://localhost:9096/Gdp.IServer.Web/signalr/hubs I can see the file content 4) Added <modules runAllManagedModul
-
Andrei Cristof
c# asp.net-mvc-4 signalr signalr-hub
I’m trying to set SignalR in my MVC4 app. The problem is – even though when I browse to path /signalr/hubs I do see code (and fiddler shows 200OK for /signalr/hubs), it does not seem to contain any reference to my hub and client side code also doesn’t see the hub and methods.I get these errors when starting debugging (IIS Express, VS Express 2012):Application_Start in Global.asax contains://RouteTable.Routes.MapHubs(“/signalr”, new HubConfiguration());RouteTable.Routes.MapHubs();RouteConfig.Regi
-
vcsjones
javascript signalr signalr-hub
I am trying to use signalR for the first time however when my hub ‘simpleEvent’ is always undefined $(document).ready(function () {var simple = $.connection.simpleEvent;….If I go to localhost/mywebapp/signalR/hubs I get the following error message: “unable to download hubs from localhost. Unable to open this Internet site. The requested site is either unavailable or cannot be found.”. However if I try again then hubs in downloaded and it looks like it has the correct hub information, such as//
-
PCG
c# asp.net-mvc signalr signalr-hub
Has anyone gotten signalR to run on Windows 8 or Server 2012? When I browse to the signalr url I recieve the following error:Protocol error: Unknown transport.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Protocol error: Unknown transport.Source Error: An unhandled exception was generated durin
-
einsteinx2
mono signalr signalr-hub owin
I’m about ready to pull my hair out over this problem because all the guides show the same one or two solutions, which seem to be working for everyone but myself.I’m using SignalR in a Mono application, using Owin. I’ve set EnableCrossDomain = true in my HubConfiguration. I’ve set up a simple test page using javascript to connect. The negotiate and ping urls are loading without issue and seem to be replying correctly. However I get a cross domain error on the connect call.It’s definitely using m