Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Confusing readme #11

Open
Falseclock opened this issue Mar 1, 2017 · 0 comments
Open

Confusing readme #11

Falseclock opened this issue Mar 1, 2017 · 0 comments

Comments

@Falseclock
Copy link

Falseclock commented Mar 1, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant