aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/guide/ws_handlers.ezdoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-02-16 18:03:35 +0100
committerLoïc Hoguin <[email protected]>2015-02-16 18:03:35 +0100
commit4f2bbd2e5a08e10f98fc82c1f0a98a7c8649b3ee (patch)
tree0eaa05fc247994ac6f01f51c1979f7b321ca260c /doc/src/guide/ws_handlers.ezdoc
parent410662b29589214c1d825a027ec6b195c23e3ad6 (diff)
parent8fd3ff2d629fa13a52061e7db5c67a3ba6fe4429 (diff)
downloadcowboy-4f2bbd2e5a08e10f98fc82c1f0a98a7c8649b3ee.tar.gz
cowboy-4f2bbd2e5a08e10f98fc82c1f0a98a7c8649b3ee.tar.bz2
cowboy-4f2bbd2e5a08e10f98fc82c1f0a98a7c8649b3ee.zip
Merge branch 'master' of https://github.com/sstrigler/cowboy
Diffstat (limited to 'doc/src/guide/ws_handlers.ezdoc')
-rw-r--r--doc/src/guide/ws_handlers.ezdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/guide/ws_handlers.ezdoc b/doc/src/guide/ws_handlers.ezdoc
index 4cdf526..a0cfc29 100644
--- a/doc/src/guide/ws_handlers.ezdoc
+++ b/doc/src/guide/ws_handlers.ezdoc
@@ -16,8 +16,8 @@ to all handlers. To establish a Websocket connection, this function
must return a `ws` tuple.
``` erlang
-init(Req, Opts) ->
- {cowboy_websocket, Req, Opts}.
+init(Req, _Opts) ->
+ {cowboy_websocket, Req, #state{}}.
```
Upon receiving this tuple, Cowboy will switch to the code