diff options
author | Loïc Hoguin <[email protected]> | 2018-06-26 10:59:22 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-06-26 10:59:22 +0200 |
commit | 5001fcbc345846efe2de6983e4f0784895b03ce8 (patch) | |
tree | d010892284bcab6c1748699a544ba004cd33137d /src | |
parent | 7867e435fe6262d783f797c659e215dc14096449 (diff) | |
download | cowboy-5001fcbc345846efe2de6983e4f0784895b03ce8.tar.gz cowboy-5001fcbc345846efe2de6983e4f0784895b03ce8.tar.bz2 cowboy-5001fcbc345846efe2de6983e4f0784895b03ce8.zip |
Add missing frame types to websocket_handle specs/docs
Thanks Artem.
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_websocket.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_websocket.erl b/src/cowboy_websocket.erl index 1469c00..48816d8 100644 --- a/src/cowboy_websocket.erl +++ b/src/cowboy_websocket.erl @@ -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(). |