Browse Source

Update websocket handler callback specs

There are some additional terminate reasons exist which are not mentioned
in the specs.
Andrew Majorov 12 years ago
parent
commit
b44ccf59e6
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/cowboy_websocket_handler.erl

+ 3 - 0
src/cowboy_websocket_handler.erl

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