diff options
Diffstat (limited to 'examples/websocket/src/ws_handler.erl')
-rw-r--r-- | examples/websocket/src/ws_handler.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/websocket/src/ws_handler.erl b/examples/websocket/src/ws_handler.erl index 18f9526..eaa9284 100644 --- a/examples/websocket/src/ws_handler.erl +++ b/examples/websocket/src/ws_handler.erl @@ -6,7 +6,7 @@ init(Req, Opts) -> erlang:start_timer(1000, self(), <<"Hello!">>), - {ws, Req, Opts}. + {cowboy_websocket, Req, Opts}. websocket_handle({text, Msg}, Req, State) -> {reply, {text, << "That's what she said! ", Msg/binary >>}, Req, State}; |