0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 20:50:24 +00:00
This commit is contained in:
Loïc Hoguin 2015-02-16 18:03:35 +01:00
commit 4f2bbd2e5a
5 changed files with 23 additions and 23 deletions

View file

@ -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