createConnection

abstract var createConnection: (options: ClientRequestArgs, oncreate: (JsError?, socket: Duplex) -> Unit) -> Duplex??(source)