package websocket-lwt-unix
Websocket library (Lwt)
Install
Dune Dependency
Authors
Maintainers
Sources
websocket-2.16.tbz
sha256=1221f4683ddad884dbd62bc3f0ee59e8cd1b0c770c356357c5e6100ac87dc5eb
sha512=1561b022380e6bc21561d36cbce1e2e28cdd08fc47f5c91f7dd9f514cb1b3f4866534512f22e85086727a758695c22125735397b5955a70f476e1b9d8cbc75c4
doc/websocket-lwt-unix.cohttp/Websocket_cohttp_lwt/index.html
Module Websocket_cohttp_lwt
Source
Source
val 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.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>