rednaw / exhibitionDB

Create your own art gallery
https://rednaw.github.io/exhibitionDB/
MIT License
0 stars 0 forks source link

Peer to Peer Communication #25

Open rednaw opened 3 years ago

rednaw commented 3 years ago

For data sharing between different users (' look at my gallery') we cannot use a shared database because we have none. Instead we can look at Peer2Peer technology.

https://webrtc.org/ With WebRTC, you can add real-time communication capabilities to your application that works on top of an open standard. It supports video, voice, and generic data to be sent between peers.

https://peerjs.com/ PeerJS wraps the browser's WebRTC implementation to provide a complete, configurable, and easy-to-use peer-to-peer connection API. Equipped with nothing but an ID, a peer can create a P2P data or media stream connection to a remote peer.

https://blog.bitsrc.io/simplified-peer-to-peer-communication-with-peerjs-e37244267723 Implementing peer-to-peer communication is a challenging task. But, if you know the correct tools, you can make it a whole lot easier. So, in this article, I will discuss PeerJS, a JavaScript library that acts as a wrapper around WebRTC, making it easier