Skip to main content
Socket.prototype.connecting - net - Node documentation
property Socket.prototype.connecting

Usage in Deno

import { Socket } from "node:net";

If true, socket.connect(options[, connectListener]) was called and has not yet finished. It will stay true until the socket becomes connected, then it is set to false and the 'connect' event is emitted. Note that the socket.connect(options[, connectListener]) callback is a listener for the 'connect' event.

Type

boolean