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

Function channelName

packages/socket.io-cluster-engine/lib/redis.ts:23–29  ·  view source on GitHub ↗
(prefix: string, nodeId?: string)

Source from the content-addressed store, hash-verified

21}
22
23function channelName(prefix: string, nodeId?: string) {
24 if (nodeId) {
25 return prefix + "#" + nodeId + "#";
26 } else {
27 return prefix + "#";
28 }
29}
30
31export function setupPrimaryWithRedis(
32 pubClient: any,

Callers 3

setupPrimaryWithRedisFunction · 0.85
constructorMethod · 0.85
publishMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected