diff options
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(). |