simple-peer icon indicating copy to clipboard operation
simple-peer copied to clipboard

can i establish connection between two devices just sharing id manually without any server?

Open ibalaji777 opened this issue 2 years ago • 3 comments

is this possible in simple peer?

ibalaji777 avatar Apr 04 '22 06:04 ibalaji777

Technically but you'd also wanna share ice servers as well which would be more of a pain, guess if you wrapped it all in one big JSON and copy and pasted a few times but wouldn't be good UX.

Velua avatar Apr 17 '22 22:04 Velua

I have even made a demonstration about this: it requires two devices with camera.

Demo: https://tbbc.app/mps

Once the connection is stablished the screen shows a green background and a ping. No server signaling. Like this comment if you enjoy it.

felquis avatar May 11 '22 23:05 felquis

I think the OP is referring to something like a static ID that two peers share and a connection is made that way.

If that's the correct assumption, this will be easier to use: https://peerjs.com/

Simple-peer can also be used in this fashion, but you'll have to build the functionality into your signaling, as simple-peer is just concerned with the transport.

jzombie avatar Nov 03 '22 13:11 jzombie