Just added a #PeerJS server in Symbiose! It allows real-time communication, and this implementation supports server-to-server communication to allow users connected on different servers to talk together.
Just added a #PeerJS server in Symbiose! It allows real-time communication, and this implementation supports server-to-server communication to allow users connected on different servers to talk together.
PeerJS - Simple peer-to-peer with WebRTC
▻http://peerjs.com
PeerJS simplifies WebRTC peer-to-peer data, video, and audio calls.
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.
<script src="http://cdn.peerjs.com/0.3/peer.js"></script>
Get a free API key. Your id only needs to be unique to the namespace of your API key.
bizarre, c’est du #P2P mais il faut leur demander une autorisation ?
On a le choix : utiliser les serveurs officiels ou installer son propre serveur : ▻https://github.com/peers/peerjs-server
PeerServer
To broker connections, PeerJS connects to a PeerServer. Note that no peer-to-peer data goes through the server; The server acts only as a connection broker.
PeerServer Cloud
If you don’t want to run your own PeerServer, we offer a free cloud-hosted version of PeerServer. Start by getting a PeerServer Cloud API Key!
Run your own
PeerServer is open source and is written in node.js. You can easily run your own.
Vu que c’est du #Nodejs et que #Symbiose est en PHP, j’ai été obligé de faire une nouvelle implémentation. Du coup j’en ai profité : ▻https://github.com/symbiose/symbiose/wiki/PeerJS%20server