package cohttp_async_websocket

  1. Overview
  2. Docs

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