cjb / serverless-webrtc

A demo of using WebRTC with no signaling server.
Other
1.54k stars 239 forks source link

Multi-node capability #12

Open shadiakiki1986 opened 9 years ago

shadiakiki1986 commented 9 years ago

Hi. I added the ability to chat with multiple users in your serverless-webrtc project. It's basically just pulling out code from your js/serverless-webrtc.js file into two classes SWHostConnection.js and SWGuestConnection.js. The main code is in separate html and js files than your original serverless-webrtc.html and js/serverless-webrtc.js. In a nutshell, this is just extending your connection to an array of connections.

cjb commented 9 years ago

@shadiakiki1986 Hey, this sounds great, thank you very much! I'll review and test it soon.

benwiley4000 commented 7 years ago

@cjb any update?

cjb commented 7 years ago

Ah, I'm sorry I never replied to this. The feature's nice, but it looks like there's lots of code duplication and style issues that it'd be good to avoid. Unless we have a volunteer to do the cleanup perhaps it's best to leave this on a separate branch for people to use..