Ojs_server.ServerServer-side utilities.
module J = Yojson.Safeval mk_msg_stream :
(string -> 'a option) ->
Websocket.Frame.t Lwt_stream.t ->
'a Lwt_stream.tval handle_messages :
(string -> 'a option) ->
('b -> string) ->
(('b -> unit Lwt.t) -> unit Lwt.t) ->
Websocket.Frame.t Lwt_stream.t ->
(Websocket.Frame.t -> unit Lwt.t) ->
unit Lwt.tmodule type P = sig ... endmodule type S = sig ... endmodule Make
(P : P) :
S
with type Rpc.app_server_msg = P.app_server_msg
and type Rpc.app_client_msg = P.app_client_msg