SignalR Groups not getting data

坚强是说给别人听的谎言 提交于 2019-12-06 09:01:00

Few things:

  1. Make sure you read the "Rejoining Groups" section on this post. http://weblogs.asp.net/davidfowler/archive/2012/11/11/microsoft-asp-net-signalr.aspx.
  2. Do you really need to make an ajax call to figure out the group name from the server? Can't you just render it directly in the page?
  3. Does it fail if you hardcode "Foo" as the group name everywhere?

Found in the anwser of dfowler: https://github.com/SignalR/SignalR/issues/1039 < Didn't see it in de comments.

The solution is: Remove the HubName attribute from your Hub.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!