Skip to main content
Http2Session.setTimeout - node__http2.d.ts - Node documentation
method Http2Session.setTimeout

Usage in Deno

```typescript import { type Http2Session } from "node:node__http2.d.ts"; ```
Http2Session.setTimeout(
msecs: number,
callback?: () => void,
): void
Used to set a callback function that is called when there is no activity on the `Http2Session` after `msecs` milliseconds. The given `callback` is registered as a listener on the `'timeout'` event.

Parameters

msecs: number
optional
callback: () => void

Return Type

void