Make.Websocket_transport
type t = Websocket_handler.Make(Schema.Io)(Ws).t = {
conn : Ws.t; |
subscriptions : ( string, unit -> unit ) Stdlib.Hashtbl.t; |
}
val client_message_of_payload :
Yojson.Basic.t ->
( client_message, string ) Stdlib.result
val server_message_to_string : server_message -> string
val create_message :
?opcode:Websocket.Frame.Opcode.t ->
?id:string ->
?payload:Yojson.Basic.t ->
server_message ->
Websocket.Frame.t
val handle_frame :
t ->
execute_query:
( (string * Graphql_parser.const_value) list option ->
string option ->
string ->
( [< `Response of Yojson.Basic.t
| `Stream of
( Yojson.Basic.t, Yojson.Basic.t ) Stdlib.result Schema.Io.Stream.t ],
Yojson.Basic.t )
Stdlib.result
Schema.Io.t ) ->
Websocket.Frame.t ->
unit Ws.IO.t
val handle :
( (string * Graphql_parser.const_value) list option ->
string option ->
string ->
( [< `Response of Yojson.Basic.t
| `Stream of
( Yojson.Basic.t, Yojson.Basic.t ) Stdlib.result Schema.Io.Stream.t ],
Yojson.Basic.t )
Stdlib.result
Schema.Io.t ) ->
Ws.t ->
'a Schema.Io.t