Skip to content

Commit

Permalink
Merge pull request #202 from erichonkanen/master
Browse files Browse the repository at this point in the history
Fix typo in the docs for connection retry condition
  • Loading branch information
Tobias Oberstein committed May 17, 2016
2 parents a3998f5 + 4d0c03e commit 1aa6ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ autobahn.Connection.onclose = function (reason, details) {
`reason` is a string with the possible values

- `"closed"`: The connection was closed explicitly (by the application or server). No automatic reconnection will be tried.
- `"lost"`: The connection had been formerly established at least once, but now was lost. Automatic reconnection will happen **unless you return falsy** from this callback.
- `"lost"`: The connection had been formerly established at least once, but now was lost. Automatic reconnection will happen **unless you return truthy** from this callback.
- `"unreachable"`: The connection could not be established in the first place. No automatic reattempt will happen, since most often the cause is fatal (e.g. invalid server URL or server unreachable)
- `unsupported`: No WebSocket transport could be created. For security reasons the WebSocket spec states that there should not be any specific errors for network-related issues, so no details are returned in this case either.

Expand Down

0 comments on commit 1aa6ba3

Please sign in to comment.