mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 20:50:24 +00:00
Merge branch 'master' of https://github.com/sstrigler/cowboy
This commit is contained in:
commit
4f2bbd2e5a
5 changed files with 23 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue