Implementing Audio chat with Socket.IO and NodeJS

Abhishek picture Abhishek · Mar 19, 2015 · Viewed 28.8k times · Source

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

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

Could anyone help me in getting basic tutorial links for integrating WebRTC with socket.IO?

Thanks in advance.

Answer

peveuve picture peveuve · Mar 19, 2015

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

You will find tutorials in their respective websites.

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