mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Update websocket handler callback specs
There are some additional terminate reasons exist which are not mentioned in the specs.
This commit is contained in:
parent
46cce48143
commit
b44ccf59e6
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,9 @@
|
|||
-type terminate_reason() :: {normal, shutdown}
|
||||
| {normal, timeout}
|
||||
| {error, closed}
|
||||
| {remote, closed}
|
||||
| {remote, cowboy_websocket:close_code(), binary()}
|
||||
| {error, badencoding}
|
||||
| {error, badframe}
|
||||
| {error, atom()}.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue