Use Signalr to have a facebook like notification system

前端 未结 2 1462
温柔的废话
温柔的废话 2021-02-01 09:14

I want to implement a facebook like notification system in ASP.NET MVC 3 : notifications are sent to a specific user to notify him for an action on one of his items.

Is

相关标签:
2条回答
  • 2021-02-01 09:58

    It is appropriate for this or you use polling, those are the two choices.

    Heres a brand new video from today on this:

    http://channel9.msdn.com/Shows/Web+Camps+TV/Damian-Edwards-and-David-Fowler-Demonstrate-SignalR?utm_source=dlvr.it&utm_medium=twitter

    0 讨论(0)
  • 2021-02-01 10:08

    Yes, SignalR is a good choice for that. Take a look at the documentation regarding Hubs (server and JS client).

    You need to implement the server logic to associate your client's session with SignalR's session. You can use groups to notify all the open sessions of each user.

    0 讨论(0)
提交回复
热议问题