New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTCMultiConnection can not signaling with socket.io over node.js example code #54
Comments
i did some debug, the https://github.com/muaz-khan/WebRTC-Experiment/blob/master/socketio-over-nodejs/webrtc-signaling/signaler.js signaler server does not work same with the firebaseIO signaler server. for example, when a user connect a session, if the sesison already exists, the user will receive some message from the other user like this
|
The referenced experiment is using You can try For io.sockets.on('connection', function (socket) {
socket.on('message', function (data) {
socket.broadcast.emit('message', data);
});
}); And client-side code to override connection.openSignalingChannel = function(callback) {
return io.connect().on('message', callback);
}; Note: |
thx |
the doc of RTCMultiConnection-v1.4 and 1.3 are the same ? i am reading the RTCMultiConnection-v1.4 source code, if a connection just connect('session-id'), it seems that it can not do the Signaling. do i miss something? append: it seems that a connection will wait a broadcasting. |
Coding style is 98% same; however, in A few Hints:connection = new RTCMultiConnection( ' socketio-namespace or firebase-channel ');
// auto-connect first-available room
connection.init();
// open new room
connection.open( ' new human readable room-name ');
// manually connect a room
connection.connect( ' new human readable room-name '); |
This is latest version of
|
i do not if i did it wrong.
if test this demo https://webrtc-experiment.appspot.com/RTCMultiConnection/video-conferencing/ with custom signaling.
the client code is
the server side code i use is from https://github.com/muaz-khan/WebRTC-Experiment/blob/master/socketio-over-nodejs/webrtc-signaling/signaler.js
i open two tab in my browser, but it can not signaling.
The text was updated successfully, but these errors were encountered: