我有一个连接到 SignalR 集线器的 JavaScript 客户端。第一次连接正常,一切正常(消息发送成功):
js/jquery.signalR-1.1.3.min.js (10) :[14:31:06 GMT+0900 (KST)] SignalR: Auto detected cross domain url.
js/jquery.signalR-1.1.3.min.js (10) :[14:31:06 GMT+0900 (KST)] SignalR: Negotiating with '........'.
js/jquery.signalR-1.1.3.min.js (10) :[14:31:06 GMT+0900 (KST)] SignalR: SignalR: Initializing long polling connection with server.
js/jquery.signalR-1.1.3.min.js (10) :[14:31:15 GMT+0900 (KST)] SignalR: Attempting to connect to '.......' using longPolling.
js/jquery.signalR-1.1.3.min.js (10) :[14:31:15 GMT+0900 (KST)] SignalR: Longpolling connected
1分钟后,它尝试重新连接,但失败:
js/jquery.signalR-1.1.3.min.js (10) :[14:32:15 GMT+0900 (KST)] SignalR: An error occurred using longPolling. Status = error.
js/jquery.signalR-1.1.3.min.js (10) :[14:32:15 GMT+0900 (KST)] SignalR: SignalR: Initializing long polling connection with server.
js/jquery.signalR-1.1.3.min.js (10) :[14:32:15 GMT+0900 (KST)] SignalR: Attempting to connect to '.......' using longPolling.
js/jquery.signalR-1.1.3.min.js (10) :[14:32:45 GMT+0900 (KST)] SignalR: Couldn't reconnect within the configured timeout (30000ms), disconnecting.
js/jquery.signalR-1.1.3.min.js (10) :[14:32:45 GMT+0900 (KST)] SignalR: Aborted xhr requst.
js/jquery.signalR-1.1.3.min.js (10) :[14:32:45 GMT+0900 (KST)] SignalR: Clearing hub invocation callbacks with error: Connection was disconnected before invocation result was received.
在服务器端,我只启用跨域连接,其他一切都是默认的。
有什么问题?