mirror of
https://github.com/guilhermewerner/erlang-ws
synced 2025-06-15 10:54:19 +00:00
Disable server spam
This commit is contained in:
@ -18,7 +18,7 @@ websocket_handle(_Data, State) ->
|
||||
{[], State}.
|
||||
|
||||
websocket_info({timeout, _Ref, Msg}, State) ->
|
||||
erlang:start_timer(1000, self(), <<"Tudo bem?">>),
|
||||
%erlang:start_timer(1000, self(), <<"Tudo bem?">>),
|
||||
{[{text, Msg}], State};
|
||||
websocket_info(_Info, State) ->
|
||||
{[], State}.
|
||||
|
Reference in New Issue
Block a user