提交 6451fe14 编写于 作者: P Pratik Naik

Call reconnect() when a ping doesnt arrive in expected time

上级 89f3fb71
......@@ -117,7 +117,7 @@ class @Cable
pingReceived: (timestamp) =>
if @lastPingTime? and (timestamp - @lastPingTime) > @PING_STALE_INTERVAL
console.log "Websocket connection is stale. Reconnecting.."
@connection?.close()
@reconnect()
else
@startWaitingForPing()
@lastPingTime = timestamp
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册