Client to Client communication?

Hi,

Is there a way for me to do client to client communication without using the server?

Thanks.

You can use PeerJS, which implements the WebRTC protocol, you can exchange any type of data between your client in a P2P way. But you’ll need a server that will act as a broker so the client will know each others.

Take a look at this app : https://github.com/yanisIk/P2PChat
It is a chat application built with Meteor and using PeerJS to exchange messages.

Keep in mind that WebRTC currently only works in Firefox and Chrome: http://caniuse.com/#search=webrtc.

Another solution is to use a service such as PubNub or Pusher. It’s still technically going through servers, but at least not going through yours.

Thank you very much! I will take a look at both or your options.