diff options
Diffstat (limited to 'plugins.mk')
-rw-r--r-- | plugins.mk | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -61,15 +61,15 @@ init(Req, State) -> {cowboy_websocket, Req, State}. websocket_init(State) -> - {ok, State}. + {[], State}. websocket_handle({text, Data}, State) -> - {reply, {text, Data}, State}; + {[{text, Data}], State}; websocket_handle({binary, Data}, State) -> - {reply, {binary, Data}, State}; + {[{binary, Data}], State}; websocket_handle(_Frame, State) -> - {ok, State}. + {[], State}. websocket_info(_Info, State) -> - {ok, State}. + {[], State}. endef |