diff options
Diffstat (limited to 'test/ws_SUITE_data/ws_timeout_hibernate.erl')
-rw-r--r-- | test/ws_SUITE_data/ws_timeout_hibernate.erl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/ws_SUITE_data/ws_timeout_hibernate.erl b/test/ws_SUITE_data/ws_timeout_hibernate.erl index b9646ac..77f8348 100644 --- a/test/ws_SUITE_data/ws_timeout_hibernate.erl +++ b/test/ws_SUITE_data/ws_timeout_hibernate.erl @@ -3,11 +3,17 @@ -module(ws_timeout_hibernate). -export([init/2]). +-export([websocket_init/1]). -export([websocket_handle/2]). -export([websocket_info/2]). init(Req, _) -> - {cowboy_websocket, Req, undefined, 1000, hibernate}. + {cowboy_websocket, Req, undefined, #{ + idle_timeout => 1000 + }}. + +websocket_init(State) -> + {ok, State, hibernate}. websocket_handle(_Frame, State) -> {ok, State, hibernate}. |