Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/socketio/socket.io
/ index.js
File
index.js
examples/private-messaging/server/index.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
const
httpServer = require(
"http"
).createServer();
2
const
Redis = require(
"ioredis"
);
3
const
redisClient =
new
Redis();
4
const
io = require(
"socket.io"
)(httpServer, {
Callers
nothing calls this directly
Calls
13
randomId
Function · 0.70
emit
Method · 0.65
use
Method · 0.45
findSession
Method · 0.45
on
Method · 0.45
saveSession
Method · 0.45
join
Method · 0.45
findMessagesForUser
Method · 0.45
findAllSessions
Method · 0.45
to
Method · 0.45
saveMessage
Method · 0.45
allSockets
Method · 0.45
Tested by
no test coverage detected