buildar / getting_started_with_webrtc

Example code to help you get started creating WebRTC applications
MIT License
79 stars 39 forks source link

added datachannel for chat messages #7

Open dip-kush opened 8 years ago

dip-kush commented 8 years ago

I have RTCDataChannel for sending chat messages. The original code of yours uses websocket for sending messages. But dataChannel only works for Chrome in the changes I have made. I can't able to understand why it is not working for Firefox. For now the changes i have made could be only seen in console. I would also like to add datachannel for file exchange eliminating the use of webSockets. I have used https://www.webrtc-experiment.com/docs/rtc-datachannel-for-beginners.html this tutorial for reference.