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

Function isInvalidAttachmentCount

packages/socket.io-parser/test/parser.js:178–181  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

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

Callers 1

parser.jsFile · 0.85

Calls 2

throwExceptionMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…