(sid, client, session)
| 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) { |
no outgoing calls
no test coverage detected