.NET 4.5 WebSockets vs SignalR

后端 未结 3 1200
北荒
北荒 2020-12-08 03:49

I\'ve seen signalR vs html5 websockets for asp.net MVC chat application but it doesn\'t 100% answer my question as it\'s based around HTML5 WebSockets, which Microsoft may h

3条回答
  •  伪装坚强ぢ
    2020-12-08 04:18

    I think SignalR is the way to go, and is going to be part of .NET itself anyway (and likely extend/merge/replace web-sockets support). It uses web sockets when it's supported, and consistent client polling hack when it's not, so, it's the way to go.

    Update:

    Since this answer is still getting upvoted, it's worth mentioning that SignalR is now officially part of ASP.NET.

    Check http://asp.net/signalr

    Update: .NET Core

    SignalR is also being added to .NET Core as @yazanpro noted in comments.

    It's available in .NET Core 2.1, and has official documentation as well.

提交回复
热议问题