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

Function randomId

examples/private-messaging/server/index.js:16–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14const { setupWorker } = require("@socket.io/sticky");
15const crypto = require("crypto");
16const randomId = () => crypto.randomBytes(8).toString("hex");
17
18const { RedisSessionStore } = require("./sessionStore");
19const sessionStore = new RedisSessionStore(redisClient);

Callers 1

index.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected