I'm trying to develop a peer-to-peer desktop app with Electron and WebRTC which transfers only JSON data betwen peers. I ran into many libraries such as PeerJs
, node-crt
and electron-webrtc
but I'm not sure what's the best way to properly integrate that, any ideas? thanks
Personaly, i have chosen https://github.com/andyet/SimpleWebRTC, which is an API pretty easy to setup. This is not relative to Electron, this is open source, there is no API key needed and it works pretty well! But to transfer JSON data you can just use websockets, because you will need it with webRTC for signalling anyway... (ok this is not a p2p solution)