package websocketaf
Module Websocketaf.Client_connetionSource
Source
type error = [ | Httpaf.Client_connection.error| `Handshake_failure of Httpaf.Response.t * [ `read ] Httpaf.Body.t
]Source
type input_handlers = {frame : opcode:Websocket.Opcode.t -> is_fin:bool -> Bigstringaf.t -> off:int -> len:int -> unit;eof : unit -> unit;
}Source
val create :
nonce:string ->
host:string ->
port:int ->
resource:string ->
sha1:(string -> string) ->
error_handler:(error -> unit) ->
websocket_handler:(Wsd.t -> input_handlers) ->
t