Permalink
Browse files

Update lib/webrtc.io.js

For a variety of reasons I find it useful to communicate one's ID back. Please consider for inclusion. I'll submit a corresponding patch to the client lib as well.
  • Loading branch information...
1 parent 113f64f commit bed02ca8a4126e5bc07179f64e70fd1e915a94b0 @ignjat ignjat committed Dec 3, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/webrtc.io.js
View
@@ -159,7 +159,8 @@ function attachEvents(manager) {
socket.send(JSON.stringify({
"eventName": "get_peers",
"data": {
- "connections": connectionsId
+ "connections": connectionsId,
+ "you": socket.id
}
}), function(error) {
if (error) {

0 comments on commit bed02ca

Please sign in to comment.