websocketaf
Websocket implementation for use with http/af
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library websocketaf
module IOVec = Httpaf.IOVec
val schedule :
t ->
kind:[ `Text | `Binary ] ->
Bigstringaf.t ->
off:int ->
len:int ->
unit
val send_ping : t -> unit
val send_pong : t -> unit
val flushed : t -> ( unit -> unit ) -> unit
val close : t -> unit
val next :
t ->
[ `Write of Bigstringaf.t IOVec.t list | `Yield | `Close of int ]
val report_result : t -> [ `Ok of int | `Closed ] -> unit
val is_closed : t -> bool
val when_ready_to_write : t -> ( unit -> unit ) -> unit