Make.2-Ws
val create :
?read_buf:Stdlib.Buffer.t ->
?write_buf:Stdlib.Buffer.t ->
mode:Graphql_websocket.Connection.mode ->
Cohttp.Request.t ->
IO.ic ->
IO.oc ->
t
val send : t -> Graphql_websocket.Frame.t -> unit IO.t
val send_multiple : t -> Graphql_websocket.Frame.t list -> unit IO.t
val recv : t -> Graphql_websocket.Frame.t IO.t
val req : t -> Cohttp.Request.t
val upgrade_connection :
?read_buf:Stdlib.Buffer.t ->
?write_buf:Stdlib.Buffer.t ->
Cohttp.Request.t ->
( t -> unit IO.t ) ->
[> `Expert of Cohttp.Response.t * ( IO.ic -> IO.oc -> unit IO.t ) ]