def websocket_handle({type, payload}, state) do
Logger.debug("Received #{type} Payload: #{payload}")
handle_payload({payload, state})
- {:ok, state, :hibernate}
+ {:ok, state}
end
@impl true
def websocket_handle(:ping, state) do
- {[:pong], state, :hibernate}
+ {[:pong], state}
end
@impl true
def websocket_handle(unknown, state) do
Logger.warn("Unknown websocket frame #{inspect(unknown)}")
- {:ok, state, :hibernate}
+ {:ok, state}
end
@impl true
def websocket_info({:send_request, message}, %WebSocket{serializer: s} = state) do
- {[{s.data_type(), s.serialize!(message)}], state, :hibernate}
+ {[{s.data_type(), s.serialize!(message)}], state}
end
@impl true