Hacker News new | ask | show | jobs
by nittanymount 822 days ago
nice one.

each party generates a public/private key pair, the key in the url is a public key to exchange with a peer, then the communication is encoded/decoded with the keys, right ?

1 comments

The peerjs connection ID is what is shared.

On first-connection, the keys are generated and exchanged over webrtc. it only does this on the first-time-connection.

On subsequent connections, the keys are used to validate identity else the connection is rejected.