Module Dream_websocketaf.WsdSource
Sourcetype error = [ | `Exn of exn
] Sourcetype mode = [ | `Client of unit -> int32| `Server
] Sourceval default_ready_to_write : unit -> unit Sourceval on_wakeup : t -> (unit -> unit) -> unit Sourceval flushed : t -> (unit -> unit) -> unit Sourceval close :
?code:
[< `Abnormal_closure
| `Going_away
| `Internal_server_error
| `Invalid_frame_payload_data
| `Mandatory_ext
| `Message_too_big
| `No_status_rcvd
| `Normal_closure
| `Other of int
| `Policy_violation
| `Protocol_error
| `TLS_handshake
| `Unsupported_data ] ->
t ->
unit Sourceval error_code : t -> [> `Exn of exn ] option Sourceval report_result : t -> [< `Closed | `Ok of int ] -> unit