signalr

Can't see SignalR traffic in browser development tools

守給你的承諾、 提交于 2020-01-24 11:15:32
问题 I built server and client code that uses SignalR. The website is working perfectly, but I can't see the web traffic in any browser (chrome, IE, Firefox). I know the web traffic is there because the website is working. Is there a way to view SignalR Traffic in a browser? If not what is the best external tool for viewing SignalR traffic? 回答1: you can use Fiddler, see this article : https://github.com/SignalR/SignalR/wiki/Using-fiddler-with-signalr 来源: https://stackoverflow.com/questions

How to have multiple SignalR hub on one page

被刻印的时光 ゝ 提交于 2020-01-24 04:26:07
问题 I've one SignalR hub that manages one type of messaging. I need to add a second hub to the same page which is just a post a message and returns to the rest of the clients and a posted message. Is it possible to have multiple hubs for one connection? The deal is that if one hub is started before the others how do I connect or subscribe to the current hub if the first hub has already started the connection? They are both a messaging type of hub but one many or may be used. How do I approach

How to send message via SignalR to a specific User(Identity Id)?

雨燕双飞 提交于 2020-01-24 01:21:07
问题 In my Startup.Auth.cs : private static void ConfigSignalR(IAppBuilder appBuilder) { appBuilder.MapSignalR(); var idProvider = new PrincipalUserIdProvider(); GlobalHost.DependencyResolver.Register(typeof(IUserIdProvider), () => idProvider); } My UserHub.cs : public class UserHub : Hub { } On the server-side, in one of my API Controller action (a Put related to a Grid Update): [...] var userHub = GlobalHost.ConnectionManager.GetHubContext<UserHub>(); // Line below does not work // userHub

SignalR Java client only supports exactly 1.3

不羁的心 提交于 2020-01-23 18:09:09
问题 Is there a reason why the Java client for SignalR only supports exactly version 1.3? https://github.com/SignalR/java-client/blob/f226631da562cfaacbe8b16d5a9ecbf8205e7c99/signalr-client-sdk/src/microsoft/aspnet/signalr/client/Connection.java#L597 Shouldn't all clients be backwards compatible? Is there any harm done and changing the verifyProtocolVersion method to verify that the protocol is less than or equal to 1.3? For testing purposes, I simply returned true, skipping the entire method body

signalr stops working in ie10

蹲街弑〆低调 提交于 2020-01-23 07:47:19
问题 I am trying to learn signalR and i have a little test working. It works in IE 9 and chrome but when i try to run it on ie10, i get t Please ensure json2.js is referenced before the SignalR.js file if you need to support clients without in searching on this error it points to ie browsers before ie 8. hoping someone can help point me in the right direction. I have tried adding a json2.js file before the signalr and the error is still coming up. thanks shannon Here is the complete error as

signalr stops working in ie10

前提是你 提交于 2020-01-23 07:47:06
问题 I am trying to learn signalR and i have a little test working. It works in IE 9 and chrome but when i try to run it on ie10, i get t Please ensure json2.js is referenced before the SignalR.js file if you need to support clients without in searching on this error it points to ie browsers before ie 8. hoping someone can help point me in the right direction. I have tried adding a json2.js file before the signalr and the error is still coming up. thanks shannon Here is the complete error as

How Can I Send Message To specific User with signalR

梦想的初衷 提交于 2020-01-23 06:58:05
问题 I have some problem with signalR, I can not send message to specific User From Hub. I want to do like this: public void Send(string userToId, string userForId, string message) { IHubContext context = GlobalHost.ConnectionManager.GetHubContext<ChatHubs>(); //userForId - it is Session["UserId"] context.Clients.User(userForId).updateMessages(message); } I have already read this topic: http://www.asp.net/signalr/overview/guide-to-the-api/mapping-users-to-connections , but It's not clear for me,

How Can I Send Message To specific User with signalR

喜欢而已 提交于 2020-01-23 06:55:17
问题 I have some problem with signalR, I can not send message to specific User From Hub. I want to do like this: public void Send(string userToId, string userForId, string message) { IHubContext context = GlobalHost.ConnectionManager.GetHubContext<ChatHubs>(); //userForId - it is Session["UserId"] context.Clients.User(userForId).updateMessages(message); } I have already read this topic: http://www.asp.net/signalr/overview/guide-to-the-api/mapping-users-to-connections , but It's not clear for me,

How can I listen postgresql database with SignalR Core in .net core project?

。_饼干妹妹 提交于 2020-01-22 16:35:08
问题 I'm working on .net core web application. I want to listen my PostgreSQL database. And if there are any changes on table, I have to got it. So according to my research, I have to use SignalR Core. I did some example application with SignalR like chat app but none of them listen database. I couldn't find any example for this. -Does It have to be trigger on PostgreSQL database? -Does It have to be listener on code side? -How can I use SignalR Core? Please show me a way. Thanks a lot. 回答1: This

SignalR chat application sending images

淺唱寂寞╮ 提交于 2020-01-21 12:22:29
问题 I have build the SingnalR chat application MVC5 signalR 2.0 , from the tutorial :- http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-getting-started-with-signalr-20-and-mvc-5 And it is all working brilliantly, though is there a way to send images/ attachments? and with the images actually displaying on the screen? 回答1: I would advise you - send images and messages by WebApi (no SignalR), and then notify all participants in the chat by SignalR. 回答2: The