SignalR, Get ConnectionId угловой 6 - PullRequest
0 голосов
/ 02 декабря 2018

Я хочу получить идентификатор подключения в CID.

var CID;

this._hubConnection = new signalR.HubConnectionBuilder().withUrl("http://localhost:49972/notify").build();
    this._hubConnection
      .start()
      .then(() => console.log('Connection started!'))
      .catch(err => console.log('Error while establishing connection :('));

это журнал на моей консоли по умолчанию

Information: WebSocket connected to ws://localhost:49972/notify?id=8hEjOLP3-5Z4oXgCLJjDww

Connection started!
...