Closed allthetime closed 10 years ago
It seems users are being connected, but something is failing and not allowing them to be shown. When I connect another user I get this in the console of the first user...
undefined has joined the room
I found something:
The output of console.log(data) in my webrtc-data.io.js is:
{connections: Array[0], you: "b75ec02b-4871-427f-21cf-ce0f626ecd50"}
When I use your server it is much more complete:
{connections: Array[0], usernames: Object, browser: "chrome", browserVer: 40, you: "b75ec02b-4871-427f-21cf-ce0f626ecd50"}
This I assume is routed in node_modules/webrtc.io/lib/webrtc.io.js where the get_peers event only gives me the two properties:
socket.send(JSON.stringify({
"eventName": "get_peers",
"data": {
"connections": connectionsId,
"you": socket.id
}
}), function(error) {
if (error) {
console.log(error);
}
});
Can you help me update to a working version? Or push your server code?
Thanks you :)
I solved the issue by using your library https://github.com/erbbysam/webRTC-data.io/blob/master/Server/webrtc.io.js in place of the server code inside this repository.
I changed line 32 of script.js to:
For some reason wss didn't work, chrome would give me:
So, I'm assuming the server is being found but then when I attempt to connect a user to a room I get:
which refers to
rtc.unsernames
in this part of webrtc-data.io.jsWhat is going wrong?