Const
The limits applied when a caller names none. A game raises them by spreading over this object.
import { DEFAULT_PACKAGE_LIMITS, decodePackage } from '@datamoc/mwg/mwl';const roomy = { ...DEFAULT_PACKAGE_LIMITS, maxEntries: 4096 };await decodePackage(new Uint8Array(8), roomy).catch(() => console.log(roomy.maxEntries)); // 4096 Copy
import { DEFAULT_PACKAGE_LIMITS, decodePackage } from '@datamoc/mwg/mwl';const roomy = { ...DEFAULT_PACKAGE_LIMITS, maxEntries: 4096 };await decodePackage(new Uint8Array(8), roomy).catch(() => console.log(roomy.maxEntries)); // 4096
The limits applied when a caller names none. A game raises them by spreading over this object.