signalr

calling the Caller method in SignalR hub outside the hub context

╄→尐↘猪︶ㄣ 提交于 2019-12-05 09:31:28
I have a question in my mind about the Caller method of SignalR. In the hub method we can call a client side function like this. Clients.Caller.addContosoChatMessageToPage(name, message); but when i use to call it from outside the hub context it is not found or not implemented?? like this.. var context = GlobalHost.ConnectionManager.GetHubContext<MyHub>(); context.Clients.Caller.reportProgress(recordCount,totalCount); Can someone enlighten me in this part or is there other way to implement it.. by now i use to implement this var context = GlobalHost.ConnectionManager.GetHubContext<MyHub>();

Visual Studio 2012 warning MSB3026: Could not copy DLL files

纵然是瞬间 提交于 2019-12-05 08:58:01
问题 I keep getting: warning MSB3026: Could not copy dlls errors. I have several projects in the solution. On build, I also get the error: Error 47 Could not copy "myapp\bin\Debug*.dll" to "bin*.dll". Exceeded retry count of 10. Failed. The application just stops responding in the middle of debugging, and I have to close Visual Studio every time. Which was annoying, but now it's getting frustrating as well. We are eight team members, and all of us are getting the same error. We can't rebuild the

How to stop/close SignalR service

烂漫一生 提交于 2019-12-05 08:52:30
问题 I just upgrade from VS2010 express to VS2013 express and open my project. I found the SignalR is running but I don't need it.Firebug is filling with SignalR message.I take long time to search how to stop/close it,but I can't find it. 回答1: On your toolbar in between the debug and the browser choice there is a button called browser link - click it and de-select the "Enable browser link" and you should be good to go... 来源: https://stackoverflow.com/questions/20092481/how-to-stop-close-signalr

Max limit of message in SignalR

岁酱吖の 提交于 2019-12-05 08:52:05
I am trying to send notifications through SignalR. It works perfectly. But, does, anyone know what is the max size message we can send through SignalR. Does it have any official limit as such. Thanks https://github.com/SignalR/SignalR/issues/1205 It's recommended to keep below 32K/message it's 64kb. if you want to send more than that from client to server than use another tool. 来源: https://stackoverflow.com/questions/18012863/max-limit-of-message-in-signalr

SignalR Alternative for Python

本小妞迷上赌 提交于 2019-12-05 08:38:38
What would be an alternative for SignalR in Python world? To be precise, I am using tornado with python 2.7.6 on Windows 8; and I found sockjs-tornado (Python noob; sorry for any inconveniences). But sockjs supports just 3 types of events and there are some limitations ; I need things like groups, subscribers, propagating and other features that SignalR provides. You are probably looking for Twisted, a whole real-time engine for applications. https://twistedmatrix.com/trac/ If you do microframeworks, Flask (think Sinatra on ruby) also has a real-time module, but it's all barebones really, it

implement signalR without jquery

血红的双手。 提交于 2019-12-05 08:22:55
is it possible to implement SignalR without the use of Jquery. I want to create a module for Titanium, but I don't know how dependent SignalR is on the DOM. Is jQuery used just for the ajax request? how hard do you think this would be? Um its not impossible but it'll be abit of work. you will basicly need to re-write all jquery syntax ($...) in Jquery.signalR.js as regual javascript. Also you will only be able to do low level connections as the "hub" model also requires jquery. You will probably need to include JSON.js so you can make your ajax call like this. var the_object = {}; var http

Testing SignalR App in IIS Express

那年仲夏 提交于 2019-12-05 08:10:11
Hello everyone I am using visual Studio 2012 and Developed a simple application for vetting purposes only However I am stuck because when I try to preview the application, I get the Following Error Message [PlatformNotSupportedException: This operation requires IIS integrated pipeline mode.] System.Web.HttpResponse.get_Headers() +9681446 System.Web.HttpResponseWrapper.get_Headers() +9 Microsoft.Owin.Host.SystemWeb.OwinCallContext.CreateEnvironment() +309 Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.GetInitialEnvironment(HttpApplication application) +246 Microsoft

How can I transfer bytes in chunks to clients?

血红的双手。 提交于 2019-12-05 08:02:42
SignalR loses many messages when I transfer chunks of bytes from client over server to client (or client to server; or server to client). I read the file into a stream and sent it over a hub or persistent connection to other client. This runs very fast, but there are always messages dropped or lost. How can I transfer large files (in chunks or not) from client to client without losing messages? As @dfowler points out, it's not the right technology for the job. What I would recommend doing is sending a message that there is a file to be downloaded that includes the link and then you can

SignalR updates not working correctly with Chrome

微笑、不失礼 提交于 2019-12-05 08:00:53
I have created an ASP MVC 4 application with SignalR notifications. I run it in Debug mode locally and also on a server through IIS publish. This works mostly (explained later) as expected when using Internet Explorer 11: HTML1300: Navigation occurred. File: AllChanges SignalR: Window unloading, stopping the connection. SignalR: Stopping connection. SignalR: Stopping forever frame. SignalR: Fired ajax abort async = false. SignalR: Stopping the monitoring of the keep alive. JQMIGRATE: Migrate is installed, version 3.0.0 SignalR: Client subscribed to hub 'prismhub'. SignalR: Negotiating with '

Signalr deserializes my objects incorrectly in IIS 7.5 and Edge/IE, foreverFrame broken?

落花浮王杯 提交于 2019-12-05 07:51:00
So I have a simple Signalr/Knockout project that uses the mapping plugin to bind a simple object (item with an array of more items) to viewModels I defined in JS: var someObjectMapping = { 'MyItemArray': { create: function (options) { return new MyItemViewModel(options.data); } } } var myItemMapping = { 'ItemChildren': { create: function (options) { return new ItemChildViewModel(options.data); } } } var SomeObjectViewModel = function (data) { ko.mapping.fromJS(data, someObjectMapping, this); } var MyItemViewModel = function (data) { ko.mapping.fromJS(data, myItemMapping, this); } var