aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Majorov <[email protected]>2013-02-13 18:24:02 +0400
committerAndrew Majorov <[email protected]>2013-02-13 18:24:02 +0400
commitb44ccf59e66cf7ce24be41a29807138d2bebcb3c (patch)
tree021a9aba1779c89c5725fd75773b9ba2a702eef5
parent46cce4814390a2917563ce7af82e0e1bbfc81ed3 (diff)
downloadcowboy-b44ccf59e66cf7ce24be41a29807138d2bebcb3c.tar.gz
cowboy-b44ccf59e66cf7ce24be41a29807138d2bebcb3c.tar.bz2
cowboy-b44ccf59e66cf7ce24be41a29807138d2bebcb3c.zip
Update websocket handler callback specs
There are some additional terminate reasons exist which are not mentioned in the specs.
-rw-r--r--src/cowboy_websocket_handler.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cowboy_websocket_handler.erl b/src/cowboy_websocket_handler.erl
index bd2ed5a..8bbbc08 100644
--- a/src/cowboy_websocket_handler.erl
+++ b/src/cowboy_websocket_handler.erl
@@ -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()}.