Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 信号集线器中的并发连接_Angularjs_Chat_Signalr Hub - Fatal编程技术网

Angularjs 信号集线器中的并发连接

Angularjs 信号集线器中的并发连接,angularjs,chat,signalr-hub,Angularjs,Chat,Signalr Hub,我有一个聊天应用程序与角度和信号2 当我试图在同一浏览器(Chrome)中同时连接超过5个用户的应用程序时,我遇到了一个问题 关于第六个连接,我在Chrome控制台中看到下一个文本: [17:14:09 GMT+0200 (GTB Standard Time)] SignalR: Client subscribed to hub 'chat'. jquery.signalR-2.0.2.js:76 [17:14:09 GMT+0200 (GTB Standard Time)] SignalR:

我有一个聊天应用程序与角度和信号2

当我试图在同一浏览器(Chrome)中同时连接超过5个用户的应用程序时,我遇到了一个问题

关于第六个连接,我在Chrome控制台中看到下一个文本:

[17:14:09 GMT+0200 (GTB Standard Time)] SignalR: Client subscribed to hub 'chat'.
jquery.signalR-2.0.2.js:76 [17:14:09 GMT+0200 (GTB Standard Time)] SignalR: Negotiating with '/signalr/negotiate?connectionData=%5B%7B%22name%22%3A%22chat%22%7D%5D&clientProtocol=1.3'.
jquery.signalR-2.0.2.js:76 [17:14:09 GMT+0200 (GTB Standard Time)] SignalR: Attempting to connect to SSE endpoint 'http://localhost:49386/signalr/connect?transport=serverSentEvents&connectio…Q13E%2Fb5FgfyojlL&connectionData=%5B%7B%22name%22%3A%22chat%22%7D%5D&tid=3'.
jquery.signalR-2.0.2.js:76 [17:14:09 GMT+0200 (GTB Standard Time)] SignalR: EventSource connected.
jquery.signalR-2.0.2.js:76 [17:14:09 GMT+0200 (GTB Standard Time)] SignalR: Now monitoring keep alive with a warning timeout of 13333.333333333332 and a connection lost timeout of 20000.
jquery.signalR-2.0.2.js:76 [17:14:12 GMT+0200 (GTB Standard Time)] SignalR: Invoking chat.LoginClient

它一直在等待,直到我关闭一个已打开连接的选项卡。之后,执行chat.LoginClient,但System.Threading.Tasks.Task OnDisconnected()没有为关闭浏览器选项卡的用户触发。

我从其他论坛得到了答案: