Skip to content

Commit

Permalink
Move websocket/af type inequality workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
aantron committed Feb 8, 2022
1 parent f82a51b commit e533e70
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/http/shared/websocket.ml
Original file line number Diff line number Diff line change
Expand Up @@ -236,3 +236,11 @@ let websocket_handler stream socket =
outgoing_loop ();

Websocketaf.Server_connection.{frame; eof}

(* TODO The equality between server and client input handlers is not
exposed in the websocketaf API.
https://github.com/anmonteiro/websocketaf/issues/39. *)
let client_websocket_handler :
Stream.stream -> Websocketaf.Wsd.t ->
Websocketaf.Client_connection.input_handlers =
Obj.magic websocket_handler

0 comments on commit e533e70

Please sign in to comment.