SignalR not working when system is ideal for some

2019-03-03 21:46发布

$.connection.myHubName.client.disconnect(function () {
    $.connection.hub.start();
});

on hub.start(); server is started but still it working properly

1条回答
一纸荒年 Trace。
2楼-- · 2019-03-03 22:34

The correct method is hanging off the hub connection itself not the hub (so not the client object).

$.connection.hub.disconnected(function () { console.log('We are currently experiencing difficulties with the connection.') });

查看更多
登录 后发表回答