Browse Source

Merge branch 'fix/websocket_callback_specs' of git://github.com/keynslug/cowboy

Loïc Hoguin 12 years ago
parent
commit
bc340478c8
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}
 	| {normal, timeout}
 	| {error, closed}
+	| {remote, closed}
+	| {remote, cowboy_websocket:close_code(), binary()}
+	| {error, badencoding}
 	| {error, badframe}
 	| {error, atom()}.