MCPcopy
hub / github.com/socketio/socket.io / isInvalidAttachmentCount

Function isInvalidAttachmentCount

packages/socket.io-parser/test/parser.js:178–181  ·  packages/socket.io-parser/test/parser.js::isInvalidAttachmentCount
(str)

Source from the content-addressed store, hash-verified

176 isInvalidPayload(class="st">'2["disconnect","123"]');
177
178 const isInvalidAttachmentCount = (str) =>
179 expect(() => new Decoder().add(str)).to.throwException(
180 /^Illegal attachments$/,
181 );
182
183 isInvalidAttachmentCount(class="st">"5");
184 isInvalidAttachmentCount(class="st">"51");

Callers 1

parser.jsFile · 0.85

Calls 2

throwExceptionMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected