Skip to content
Snippets Groups Projects
Commit 9096f343 authored by lazorfuzz's avatar lazorfuzz
Browse files

Send client their id upon connection

parent 1b4e8b85
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ export default (server, config) => { ...@@ -55,7 +55,7 @@ export default (server, config) => {
} }
// leave any existing rooms // leave any existing rooms
removeFeed(); 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.join(name);
client.room = name; client.room = name;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment