Skip to content

Commit 2f10609

Browse files
committed
fix specs of websocket_handler_callback
1 parent 8f9194e commit 2f10609

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/elli_ws_request_adapter.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ websocket_handler_init(#req_adapter{req=Req}=RA, Handler, HandlerOpts) ->
208208
HandlerState :: any(),
209209
Result :: {ok, req(), any()} |
210210
{ok, req(), any(), hibernate} |
211-
{reply, elli_websocket:payload(), req(), any()} |
212-
{reply, elli_websocket:payload(), hibernate, req(), any()} |
211+
{reply, elli_ws_protocol:frame() | [elli_ws_protocol:frame()], req(), any()} |
212+
{reply, elli_ws_protocol:frame() | [elli_ws_protocol:frame()], req(), any(), hibernate} |
213213
{shutdown, req(), any()}.
214214
websocket_handler_callback(#req_adapter{req=Req}=RA, Handler, Callback, Message, HandlerState) ->
215215
case Handler:Callback(Req, Message, HandlerState) of

0 commit comments

Comments
 (0)