Skip to main content
OutgoingMessage.prototype.setTimeout - node__http.d.ts - Node documentation
method OutgoingMessage.prototype.setTimeout

Usage in Deno

```typescript import { OutgoingMessage } from "node:node__http.d.ts"; ```
OutgoingMessage.prototype.setTimeout(
msecs: number,
callback?: () => void,
): this
Once a socket is associated with the message and is connected, `socket.setTimeout()` will be called with `msecs` as the first parameter.

Parameters

msecs: number
optional
callback: () => void
Optional function to be called when a timeout occurs. Same as binding to the `timeout` event.

Return Type

this