Implementing Audio Chat Using Socket.IO and NodeJS

I created a chat application using sails.js ( node.js ) and socket.IO .

I need to implement audio chat and file transfers with it.

Can someone help me get some basic tutorial links for integrating WebRTC with socket.IO ?

Thanks in advance.

+5
source share
1 answer

If I were you, I would use the WebRTC library, which provides both the client and server side. Check EasyRTC , SimpleWebRTC , PeerJS or others. Most libraries are implemented in Javascript and work in Node.js.

You will find tutorials on their respective sites.

I personally use PeerJS, the code and documentation are very good and fully support data channels (useful for file transfers). The only thing is that there are only 2 founders, and the community seems pretty small.

+11
source

Source: https://habr.com/ru/post/1215651/


All Articles