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

Usage in Deno

```typescript import { type Http2Session } from "node:node__http2.d.ts"; ```
Http2Session.setLocalWindowSize(windowSize: number): void
Sets the local endpoint's window size. The `windowSize` is the total window size to set, not the delta. ```js import http2 from 'node:http2'; const server = http2.createServer(); const expectedWindowSize = 2 ** 20; server.on('connect', (session) => { // Set local window size to be 2 ** 20 session.setLocalWindowSize(expectedWindowSize); }); ```

Parameters

windowSize: number

Return Type

void