How to use SignalR with Angular 2?

后端 未结 4 830
轮回少年
轮回少年 2021-02-06 09:12

How to use SignalR with Angular 2?

How to manually run change detection when receiving data from SignalR?

4条回答
  •  [愿得一人]
    2021-02-06 09:53

    You can also try using ng2-signalr.

    npm install ng2-signalr --save
    
    • takes care of ng2 change detection using zones
    • allows your server events to be listened to using rxjs.

    Here is the link to the source.

提交回复
热议问题