package websocket-lwt-unix

  1. Overview
  2. Docs
Websocket library (Lwt)

Install

Dune Dependency

Authors

Maintainers

Sources

websocket-2.13.tbz
sha256=5923a79db1e122045e59d5a6a44b7fe58045bbad8ab3b6665750c658110aad71
md5=d0d07611c69250602c0ad9d7cddfae8e

doc/websocket-lwt-unix.cohttp/Websocket_cohttp_lwt/index.html

Module Websocket_cohttp_lwtSource

Sourceval upgrade_connection : Cohttp.Request.t -> (Websocket.Frame.t -> unit) -> (Cohttp_lwt_unix.Server.response_action * (Websocket.Frame.t option -> unit)) Lwt.t

upgrade_connection req incoming_handler takes req, a connection request, and incoming_handler, a function that will process incoming websocket frames, and returns (response_action, push_frame) where response_action is used to produce a Cohttp_lwt.Server.t and push_frame is used to send websocket frames to the client.

OCaml

Innovation. Community. Security.