signalhub-swarm

Fullmesh WebRTC connections built on signalhub and simple-peer.

Usage no npm install needed!

<script type="module">
  import signalhubSwarm from 'https://cdn.skypack.dev/signalhub-swarm';
</script>

README

signalhub-swarm

Fullmesh WebRTC connections built on signalhub and simple-peer.

Some important features we add on top of these libraries:

  • Persistent peer IDs (which can be very useful for an app elsewhere)
  • Fully symmetric API (no deciding which peers are "initiators")
  • Races are resolved automatically
  • PeerConnection restarts
  • Messaging and shared state between peers over signalhub
  • Message authentication (optional)

This library was built for Jam and is designed for the use case of auto-connecting peers who visit the same URL ("room").

Usage

yarn add signalhub-swarm

TODO: API usage