package mhttp-server

  1. Overview
  2. Docs

Module Mhttp_server.WebsocketSource

Sourcetype elt = [ `Connection_close | `Msg of H1.Websocket.Opcode.standard_non_control * bool | `Other | `Ping | `Pong ] * string
Sourcetype ic = unit -> elt option
Sourceand oc = elt -> unit
Sourceand stop
Sourceval stop : unit -> stop
Sourceval switch : stop -> unit
Sourceval upgrade : ?tags:Logs.Tag.set -> ?stop:stop -> fn:(ic -> oc -> unit) -> flow -> unit