aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/ws_active_commands_h.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/handlers/ws_active_commands_h.erl')
-rw-r--r--test/handlers/ws_active_commands_h.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/handlers/ws_active_commands_h.erl b/test/handlers/ws_active_commands_h.erl
index 1c615e3..bbf8907 100644
--- a/test/handlers/ws_active_commands_h.erl
+++ b/test/handlers/ws_active_commands_h.erl
@@ -9,8 +9,8 @@
-export([websocket_handle/2]).
-export([websocket_info/2]).
-init(Req, RunOrHibernate) ->
- {cowboy_websocket, Req, RunOrHibernate}.
+init(Req, Opts) ->
+ {cowboy_websocket, Req, maps:get(run_or_hibernate, Opts), Opts}.
websocket_init(State=run) ->
erlang:send_after(1500, self(), active_true),