Middleware that guards against messages exceeding a maximum size. If the message exceeds the maximum size, it will be rejected.

Hierarchy

  • SizeGuard

Implements

Constructors

Properties

Methods

Constructors

Properties

max_size: number

The maximum size of a message in bytes.

name: string = "Size Guard"

Methods

Generated using TypeDoc