mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Add ct tests for binary websocket frames
This commit is contained in:
parent
9800348c21
commit
7a68a38e5a
2 changed files with 12 additions and 0 deletions
|
@ -23,6 +23,8 @@ websocket_init(_TransportName, Req, _Opts) ->
|
|||
|
||||
websocket_handle({text, Data}, Req, State) ->
|
||||
{reply, {text, Data}, Req, State};
|
||||
websocket_handle({binary, Data}, Req, State) ->
|
||||
{reply, {binary, Data}, Req, State};
|
||||
websocket_handle(_Frame, Req, State) ->
|
||||
{ok, Req, State}.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue