Skip to main content
Socket.prototype.connecting - node__net.d.ts - Node documentation
property Socket.prototype.connecting

Usage in Deno

```typescript import { Socket } from "node:node__net.d.ts"; ```
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