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