mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 04:30:25 +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}
|
-type terminate_reason() :: {normal, shutdown}
|
||||||
| {normal, timeout}
|
| {normal, timeout}
|
||||||
| {error, closed}
|
| {error, closed}
|
||||||
|
| {remote, closed}
|
||||||
|
| {remote, cowboy_websocket:close_code(), binary()}
|
||||||
|
| {error, badencoding}
|
||||||
| {error, badframe}
|
| {error, badframe}
|
||||||
| {error, atom()}.
|
| {error, atom()}.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue