Hey there !
I am working on a project in which I need to implement a “simple” voice chat feature but I’am lost in WebRTC and socket io usage.
I tried to understand how WebRTC works with the @baconcheese113’s minimal react native webrtc project. I got this working locally, I think I understand a bit more the webrtc side, but it’s a whole different thing when it comes to socket io.
I am using the two below links to learn more about how to make it live with socket io, but I think I am missing the big picture.
https://github.com/baconcheese113/chat2getherRN/blob/master/src/helpers/socketHelper.js#L101
https://github.com/baconcheese113/chat2gether/blob/master/server/src/socket.js#L3
Finally I am completely lost with this and I am looking for someone who could help me to understand the flows of both WebRTC and socket io working together.
The thing is that I globally understand how the local stream is set, but I do not understand how I can get those stream on the different remote machines to build a live voice chat like discord voice channels.
Thank you for reading me