package httpun-ws
Module Httpun_ws.Client_connectionSource
Source
type error = [ | Httpun.Client_connection.error| `Handshake_failure of Httpun.Response.t * Httpun.Body.Reader.t
]Source
val connect :
nonce:string ->
?headers:Httpun.Headers.t ->
sha1:(string -> string) ->
error_handler:(error -> unit) ->
websocket_handler:(Wsd.t -> Websocket_connection.input_handlers) ->
string ->
tSource
val create :
?error_handler:(Wsd.t -> [ `Exn of exn ] -> unit) ->
(Wsd.t -> Websocket_connection.input_handlers) ->
tSource
val next_write_operation :
t ->
[ `Write of Bigstringaf.t IOVec.t list | `Yield | `Close of int ]