Net.Socket
type t
val t_of_js : Ojs.t -> t
val t_to_js : t -> Ojs.t
val make : unit -> t
val isPaused : t -> bool
val destroy : t -> unit
val connect : t -> port:int -> host:string -> t
val setTimeout : t -> int -> t
val on : t -> [ `Connect of unit -> unit | `Timeout of unit -> unit | `Error of err:JsError.t -> unit ] -> unit