package ojs_base

  1. Overview
  2. Docs

Module Ojs_server.ServerSource

Server-side utilities.

Sourcemodule SMap : Map.S with type key = string
Sourceval mk_msg_of_wsdata : (J.t -> ('a, string) result) -> string -> 'a option
Sourceval mk_send_msg : ('a -> string) -> (Websocket.Frame.t -> unit Lwt.t) -> 'a -> unit Lwt.t
Sourceval mk_msg_stream : (string -> 'a option) -> Websocket.Frame.t Lwt_stream.t -> 'a Lwt_stream.t
Sourceval 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.t
Sourcemodule type P = sig ... end
Sourcemodule type S = sig ... end
OCaml

Innovation. Community. Security.