Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sweng-group-15
signalbuddy
Commits
9096f343
Commit
9096f343
authored
Oct 10, 2018
by
lazorfuzz
Browse files
Send client their id upon connection
parent
1b4e8b85
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sockets.js
View file @
9096f343
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment