package ojs_base

  1. Overview
  2. Docs
Base library for developing OCaml web apps based on websockets and js_of_ocaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ojs-base-0.9.0.tar.bz2
md5=d1280f8b88bd6e03f62084c63027cf47
sha512=ff933d51b7a64a4d7356442284f0d992de746523fb28217d01c7d4ca0f461920b9f05d2f22ae4ba51f5a819c6b923e64b600150164ae58439b86e186d284b2ee

doc/ojs_base.server/Ojs_server/Server/index.html

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