Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementing Audio chat with Socket.IO and NodeJS

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.

like image 925
Abhishek Avatar asked Mar 19 '15 08:03

Abhishek


Video Answer


1 Answers

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.

like image 172
peveuve Avatar answered Sep 17 '22 15:09

peveuve