SignalR 2.1 Cordova - WebSockets总是在连接时超时(android< 4.4)

时间:2014-09-04 10:13:47

标签: android cordova websocket signalr

尽管有可用的WebSockets(通过https://github.com/mkuklis/phonegap-websocket插件),我们的Cordova(PhoneGap)SignalR应用程序仍未通过Long Polling传输。该插件与我们的其他WebSockets应用程序一起工作,所以这看起来特别如此,所以SignalR。

09-02 15:43:21.328: I/Web Console(2774): [15:43:21 GMT+0000 (GMT)] SignalR: Negotiating with 'https://abx.xyz/signalr/negotiate?clientProtocol=1.4&connectionData=%5B%7B%22name%22%3A%22modelbrokerhub%22%7D%5D'. at https://abx.xyz/Scripts/jquery.signalR-2.1.1.js:81
09-02 15:43:21.364: I/Web Console(2774): [15:43:21 GMT+0000 (GMT)] SignalR: Connecting to websocket endpoint 'wss://abx.xyz/signalr/connect?transport=webSockets&clientProtocol=1.4&connectionToken=XbDetAQ5JXGPEwClfACiTW%2FuJq1NcXSErfEtHxyfMtdDTsTH%2BbzMPiH8tR1mvvbaJn6SsrvdKtnuTrdPmbCs3LrW%2Bxl6VTY4HmgvNerPUNEkqL0t0%2FwcLIx0FfVCjsZt&connectionData=%5B%7B%22name%22%3A%22modelbrokerhub%22%7D%5D&tid=1'. at https://abx.xyz/Scripts/jquery.signalR-2.1.1.js:81
09-02 15:43:26.372: I/Web Console(2774): [15:43:26 GMT+0000 (GMT)] SignalR: webSockets timed out when trying to connect. at https://abx.xyz/Scripts/jquery.signalR-2.1.1.js:81
09-02 15:43:26.372: I/Web Console(2774): [15:43:26 GMT+0000 (GMT)] SignalR: Closing the Websocket. at https://abx.xyz/Scripts/jquery.signalR-2.1.1.js:81

还有其他人看过这个问题吗?

0 个答案:

没有答案