Skip to content

Documentation / @super-line/server / Backpressure

Interface: Backpressure

Defined in: conn.ts:5

Backpressure policy: what to do when a connection's send buffer grows too large.

Properties

maxBufferedBytes

maxBufferedBytes: number

Defined in: conn.ts:7

Buffer size (bytes) above which Backpressure.onExceed kicks in.


onExceed?

optional onExceed?: "close" | "drop"

Defined in: conn.ts:9

'close' (default) drops the connection with code 1013; 'drop' skips the frame.

Released under the MIT License.