How to hook up SignalR with an Angular 7 application

后端 未结 4 1421
情话喂你
情话喂你 2021-02-01 23:52

I simply cannot figure out how to make a signalr connection from Angular.

Using the following tutorial at https://docs.microsoft.com/en-us/aspnet/signalr/overview/gettin

4条回答
  •  自闭症患者
    2021-02-02 00:12

    Are you sure that the hubEndpoint is correct? It seems like the hub is part of the angular routing (judging by the way you are writing it). Try to set the full path (ex. https://www.myapp.com/SynBroadcastHub/BroadcastMessage)

提交回复
热议问题