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.
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.