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

Fix the cowboy_websocket:frame/0 type

It accepts iodata() and not binary() for the payload.
Loïc Hoguin 12 лет назад
Родитель
Сommit
7577ce4920
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/cowboy_websocket.erl

+ 2 - 2
src/cowboy_websocket.erl

@@ -29,8 +29,8 @@
 -export_type([close_code/0]).
 
 -type frame() :: close | ping | pong
-	| {text | binary | close | ping | pong, binary()}
-	| {close, close_code(), binary()}.
+	| {text | binary | close | ping | pong, iodata()}
+	| {close, close_code(), iodata()}.
 -export_type([frame/0]).
 
 -type opcode() :: 0 | 1 | 2 | 8 | 9 | 10.