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

Function isNamespaceValid

packages/socket.io-parser/lib/index.ts:384–386  ·  view source on GitHub ↗
(nsp: unknown)

Source from the content-addressed store, hash-verified

382}
383
384function isNamespaceValid(nsp: unknown) {
385 return typeof nsp === "string";
386}
387
388// see https://caniuse.com/mdn-javascript_builtins_number_isinteger
389const isInteger =

Callers 1

isPacketValidFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected