package cohttp_async_websocket

  1. Overview
  2. Docs
Websocket library for use with cohttp and async

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cohttp_async_websocket-v0.16.0.tar.gz
sha256=786451c7d47cfe1cc54201b168b81949e2d847d562285107f596062e8d3185c9

doc/cohttp_async_websocket/Cohttp_async_websocket/Server/index.html

Module Cohttp_async_websocket.ServerSource

Sourcemodule On_connection : sig ... end
Sourcetype websocket_handler = inet:Async.Socket.Address.Inet.t -> subprotocol:string option -> Cohttp.Request.t -> On_connection.t Async.Deferred.t
Sourceval create : non_ws_request:http_handler -> ?opcode:[ `Text | `Binary ] -> ?should_process_request: (Async.Socket.Address.Inet.t -> Header.t -> is_websocket_request:bool -> unit Core.Or_error.t) -> ?websocket_subprotocol_selection: (Cohttp_async.Request.t -> [ `Subprotocol of string option ]) -> websocket_handler -> raw_http_handler