Просмотр исходного кода

Update websocket handler callback specs

There are some additional terminate reasons exist which are not mentioned
in the specs.
Andrew Majorov 12 лет назад
Родитель
Сommit
b44ccf59e6
1 измененных файлов с 3 добавлено и 0 удалено
  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()}.