mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 04:30:25 +00:00
Add missing frame types to websocket_handle specs/docs
Thanks Artem.
This commit is contained in:
parent
7867e435fe
commit
5001fcbc34
2 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ Req :: cowboy_req:req()
|
|||
PartialReq :: map()
|
||||
State :: any()
|
||||
Opts :: cowboy_websocket:opts()
|
||||
InFrame :: {text | binary | ping | pong, binary()}
|
||||
InFrame :: ping | pong | {text | binary | ping | pong, binary()}
|
||||
OutFrame :: cow_ws:frame() %% see types below
|
||||
Info :: any()
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
-> call_result(State) when State::any().
|
||||
-optional_callbacks([websocket_init/1]).
|
||||
|
||||
-callback websocket_handle({text | binary | ping | pong, binary()}, State)
|
||||
-callback websocket_handle(ping | pong | {text | binary | ping | pong, binary()}, State)
|
||||
-> call_result(State) when State::any().
|
||||
-callback websocket_info(any(), State)
|
||||
-> call_result(State) when State::any().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue