Fconnect
Bun

function

net.connect

function connect(
options: NetConnectOpts,
connectionListener?: () => void
): Socket;

Aliases to createConnection.

Possible signatures:

  • connect
  • connect for IPC connections.
  • connect for TCP connections.
function connect(
port: number,
host?: string,
connectionListener?: () => void
): Socket;

Aliases to createConnection.

Possible signatures:

  • connect
  • connect for IPC connections.
  • connect for TCP connections.
function connect(
path: string,
connectionListener?: () => void
): Socket;

Aliases to createConnection.

Possible signatures:

  • connect
  • connect for IPC connections.
  • connect for TCP connections.