MCPcopy Index your code
hub / github.com/deployd/deployd / indexSocket

Function indexSocket

lib/session.js:93–103  ·  view source on GitHub ↗
(sid, client, session)

Source from the content-addressed store, hash-verified

91 };
92
93 var indexSocket = function(sid, client, session) {
94 // index sockets against their session id
95 socketIndex[sid] = socketIndex[sid] || {};
96 socketIndex[sid][client.id] = client;
97 socketQueue.emit('socket', client, session);
98
99 // make sure the list of rooms to join is fresh
100 self.refreshSessionRooms(sid, function() {
101 client.emit('server:acksession');
102 });
103 };
104
105 if (sid) {
106 getSession(sid, function(err, session) {

Callers 2

SessionStoreFunction · 0.85
setSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected