Connection.ConfigDriver configuration.
The type for protocol tracers.
Called with the raw JSON received and sent on the WebSocket. This can be quite large on screenshots so you may want to truncate it.
val protocol_tracer_nop : protocol_tracertracer_nop is a protocol tracer that does nothing.
val protocol_tracer_default : protocol_tracertracer_default logs the first 1024 bytes of the JSON when More.Log.level is Debug.
type drop_tracer =
[ `Event of string | `Response of [ `Command | `Error of string ] * int ] ->
unitThe type for dropped event or identified responses.
Called with method names whenever no continuation is found for either a received event (may happen if no fiber is awaiting it) or for responses whose identifier is unknown (may happen if you get out of handle with unresumed contiuations or if the driver misbehaves with command identifiers).
val drop_tracer_nop : drop_tracerdrop_tracer_nop is a missed tracer that does nothing.
val drop_tracer_default : drop_tracerdrop_tracer_default logs the drops when More.Log.level is Info.
val make :
?args:More.Cmd.t ->
?drop_tracer:drop_tracer ->
?headless:bool ->
?port:int ->
?protocol_tracer:protocol_tracer ->
?websocket_max_recv_message_byte_size:int ->
unit ->
tmake is a configuration with:
args, if applicable additional command line arguments for a spawn-based driver. Defaults to Cmd.empty.drop_tracer is a drop tracer, defaults to drop_tracer_defaultheadless, if true (default) run without a graphical interface.port, hints a network port on which the WebSocket handshake should be performed. Defaults choses a random port above 1023.protocol_tracer is a protocol tracer, defaults to protocol_tracer_default.websocket_max_recv_message_byte_size is used with Bytesrw_websocket.make. In contrast to there, we use Int.max_int, that is effectively unlimited, for the default.val args : t -> More.Cmd.targs c additional arguments added to a spawn-based driver.
val headless : t -> boolheadless c is true if there is desire to run without a graphical interface.
val port : t -> intport c is the suggested port on which to perform the WebSocket handshake.
val protocol_tracer : t -> protocol_tracerprotocol_tracer c is the protocol tracer of c.
val drop_tracer : t -> drop_tracerdrop_tracer c is the drop tracer of c.
val websocket_max_recv_message_byte_size : t -> intwebsocket_max_recv_message_byte_size c is the maximal received message byte size on the websocket.
val pp : Stdlib.Format.formatter -> t -> unitpp formats configuration for inspection.