You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 3, 2021. It is now read-only.
function shouldReconnect(event, ws) { if (event.type === 'online') return 0 return [1006,1011,1012].indexOf(event.code) && [1000,5000,10000][ws.attempt] }
Should be ws.attempts
var ws = new RobustWebSocket('ws://echo.websocket.org/', null {
function shouldReconnect(event, ws) { if (event.type === 'online') return 0 return [1006,1011,1012].indexOf(event.code) && [1000,5000,10000][ws.attempt] }Should be ws.attempts
var ws = new RobustWebSocket('ws://echo.websocket.org/', null {Forgot comma