connect

external fun connect(options: NetConnectOpts, connectionListener: () -> Unit = definedExternally): Socket(source)

Aliases to {@link createConnection}.

Possible signatures:

  • {@link connect}

  • {@link connect} for IPC connections.

  • {@link connect} for TCP connections.


external fun connect(port: Number, host: String = definedExternally, connectionListener: () -> Unit = definedExternally): Socket(source)
external fun connect(path: String, connectionListener: () -> Unit = definedExternally): Socket(source)