peerjs-server icon indicating copy to clipboard operation
peerjs-server copied to clipboard

AirDrop like peer discovery

Open ivelin opened this issue 5 years ago • 3 comments

Is there interest in peer discovery extensions?

Why:

  • Currently peerjs-server leaves it to developers to find ways to exchange their IDs so they can connect. This is a perfectly valid design choice for ultimate flexibility.
  • It would be convenient for developers if there are canned peering mechanisms for some of the common use cases.
  • One such use case is proximity peering. It applies to a lot of real world apps, including peerjs's own theater cues example.

What:

  • AirDrop like peering experience when peers are in close physical proximity.

How:

  • Assuming peers are located physically in the same room, logged into the same WiFi/LAN and sharing the same Public IP address.
  • See sharedrop.io for a nice implementation. Its based on a peerjs fork. It relies on Firebase realtime databse, which I don't think is a necessary dependency with peerjs-server.
  • See Ambianic PnP for a peerjs-server fork with room management extension. Happy to contribute the code back to peerjs-server if there is interest.

Ivelin

ivelin avatar Dec 15 '19 16:12 ivelin

I like the idea of rooms system. It should be pluggable into exists core.

afrokick avatar Dec 15 '19 22:12 afrokick

The room API implementation has been finished and tested for several weeks. Please take a look if you have a chance and let me know if its of interest to merge into the original repo. Here is the forked repo: https://github.com/ambianic/ambianic-pnp

ivelin avatar Feb 14 '20 21:02 ivelin

FWIW, I'd vote for better documentation (specifically for the available endpoints) and adding examples before this is introduced.

joeyfigaro avatar Jun 25 '20 17:06 joeyfigaro