property WebSocketPluginOptions.maxMessageBytes

Maximum size in bytes of a single inbound frame. 0 (the default) means unlimited. A larger frame closes the connection with code 1009 (message too big) and is never delivered to onMessage.

Type

number

Usage

import { type WebSocketPluginOptions } from "websocket-plugin/src/index.ts";