0
Fork 0
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:
Andrew Majorov 2013-02-13 18:24:02 +04:00
parent 46cce48143
commit b44ccf59e6

View file

@ -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()}.