package websocket-lwt-unix

  1. Overview
  2. Docs
Websocket library (Lwt)

Install

Dune Dependency

Authors

Maintainers

Sources

websocket-lwt-unix-2.15.tbz
sha256=7ba435572227093515e60fa58c395735750d16d0ca866a7dbc0986d2f67f55bc
sha512=b7d939035d86300fba6dee1d7b59f85f0255827fd8aef2cdabfe9f9185cf84020ba07c7835d4c54ced9b21a2b974cc626aed921f11de5ed81c40d1cfa0f4fd48

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.