Commit 9096f343 authored by lazorfuzz's avatar lazorfuzz
Browse files

Send client their id upon connection

parent 1b4e8b85
......@@ -55,7 +55,7 @@ export default (server, config) => {
}
// leave any existing rooms
removeFeed();
getClients(name, (err, clients) => safeCb(cb)(err, clients));
getClients(name, (err, clients) => safeCb(cb)(err, Object.assign({}, { you: client.id }, clients)));
client.join(name);
client.room = name;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment