Any samples for mvc6 with signalr?

橙三吉。 提交于 2019-12-20 09:17:44

问题


I have a full-working ASP.NET MVC application (.NET Core, ASP.NET MVC 6).

I would now like to add a signalr to my application. Any samples for MVC with signalr?


回答1:


The MusicStore sample on GitHub use signalR
and the BugTracker sample also
and you have a sample in the SignalR-Server repo
Or you can look at my sample on GitHub




回答2:


I don't believe there are any yet.

The next version of SignalR, version 3, is designed for ASP.NET Core, SignalR 2 doesn't support this. If you look on the ASP website https://www.asp.net/learn it doesn't mention that you can use SignalR with ASP.NET Core .

Since ASP.NET Core makes use of NodeJS rather then NuGet for client-side libraries, a Node module would probably be created for SignalR. Only time will tell what SingalR 3 will look like.

This is also a relevant question What is the development status of SignalR 3?



来源:https://stackoverflow.com/questions/30475804/any-samples-for-mvc6-with-signalr

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