MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / ensurePayloadSize

Method ensurePayloadSize

webui/js/websocket.js:704–709  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

702 }
703
704 ensurePayloadSize(data) {
705 const size = this.calculatePayloadSize(data);
706 if (size > MAX_PAYLOAD_BYTES) {
707 throw new Error("Payload too large");
708 }
709 }
710
711 calculatePayloadSize(data) {
712 try {

Callers 2

emitMethod · 0.95
requestMethod · 0.95

Calls 1

calculatePayloadSizeMethod · 0.95

Tested by

no test coverage detected