【发布时间】:2014-12-30 11:44:05
【问题描述】:
我在 Node-webkit 中有这个错误:WebSocket connection to 'wss://ns313841.ovh.net:13062/' failed: Connection closed before收到握手响应。
但在 Chrome 浏览器中一切正常。任何的想法? :/
完整的 JS 日志:
SIPML5 API 版本 = 1.5.222 VM131 SIPml-api.js:890
用户代理=Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, 像壁虎)Chrome/38.0.2125.104 Safari/537.36 VM131 SIPml-api.js:890
支持 WebSocket = 是 VM131 SIPml-api.js:890
导航器友好名称 = chrome VM131 SIPml-api.js:890
操作系统友好名称 = windows VM131 SIPml-api.js:890
有 WebRTC = 是 VM131 SIPml-api.js:890
有 GUM = 是 VM131 SIPml-api.js:890
引擎初始化 VM131 SIPml-api.js:890
s_websocket_server_url=(null) VM131 SIPml-api.js:890
s_sip_outboundproxy_url=udp://xxxxxxx VM131 SIPml-api.js:890
b_rtcweb_breaker_enabled=yes VM131 SIPml-api.js:890
b_click2call_enabled=no VM131 SIPml-api.js:890
b_early_ims=yes VM131 SIPml-api.js:890
b_enable_media_stream_cache=no SIPml-api.js:890
o_bandwidth={} SIPml-api.js:890
o_video_size={} SIPml-api.js:890
SIP 堆栈开始:proxy='ns313841.ovh.net:13062', 领域='',impi='xxxxxxx', impu='"xxxxxxx"' SIPml-api.js:890
连接到 'wss://ns313841.ovh.net:13062' SIPml-api.js:890
'starting' 事件触发 sipml5.js:11
到“wss://ns313841.ovh.net:13062/”的 WebSocket 连接失败: 连接在收到握手响应之前关闭 SIPml-api.js:16579
__tsip_transport_ws_onerror SIPml-api.js:890
__tsip_transport_ws_onclose SIPml-api.js:890
'failed_to_start' 事件触发
【问题讨论】:
-
Handshake 是指用于安全连接的 TLS/SSL 加密,所以我将从这个方向开始挖掘。
标签: javascript websocket node-webkit