Permalink
Browse files

Consistently quote documentation strings. (#326)

  • Loading branch information...
gruns authored and oberstet committed Nov 10, 2017
1 parent 8ad8f0e commit dd43b1beb5dfa6c918829052368474448c07e421
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/reference.md
View
@@ -135,7 +135,7 @@ autobahn.Connection.onclose = function (reason, details) {
- `"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 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.
- `"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.
`details` is an object containing the `reason` and `message` passed to `autobahn.Connection.close()`, and thus does not apply in case of `"lost"` or `"unreachable"`.

0 comments on commit dd43b1b

Please sign in to comment.