@jeffusion/bungee-types 6.11.0 → 6.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -310,9 +310,13 @@ export type InterceptResult = {
310
310
  reason?: string;
311
311
  } | undefined;
312
312
  export declare const DEFAULT_WEBSOCKET_MAX_CONNECTIONS = 512;
313
+ export declare const DEFAULT_WEBSOCKET_MAX_MESSAGE_BYTES: number;
314
+ export declare const MAX_WEBSOCKET_MAX_MESSAGE_BYTES = 2147483647;
313
315
  export interface AppConfig {
314
316
  /** Public client connections, including pending handshakes; null disables the count limit. */
315
317
  websocket_max_connections?: number | null;
318
+ /** Maximum complete WebSocket message in bytes; omitted uses 16 MiB. */
319
+ websocket_max_message_bytes?: number;
316
320
  config_version?: number;
317
321
  log_level?: string;
318
322
  body_parser_limit?: string;
package/dist/types.js CHANGED
@@ -1,2 +1,5 @@
1
1
  export const DEFAULT_WEBSOCKET_MAX_CONNECTIONS = 512;
2
+ export const DEFAULT_WEBSOCKET_MAX_MESSAGE_BYTES = 16 * 1024 * 1024;
3
+ // The ws parser coerces maxPayload to a signed 32-bit integer.
4
+ export const MAX_WEBSOCKET_MAX_MESSAGE_BYTES = 0x7fffffff;
2
5
  export { decodeDaemonMetadataV1, encodeDaemonMetadataV1, parseDaemonMetadataV1, validateDaemonMetadataV1, } from './daemon-control.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeffusion/bungee-types",
3
- "version": "6.11.0",
3
+ "version": "6.11.1",
4
4
  "description": "TypeScript type definitions for Bungee",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",