Hacker News new | ask | show | jobs
by marshray 4838 days ago
The docs say "Note that the server is only for brokering connections and does not proxy data between peers."

So what browser API does the PeerJS use to exchange data with something other than a server, particularly another browser?

Is this it? https://tools.ietf.org/html/draft-jesup-rtcweb-data-protocol...

2 comments

I tried disconnecting the wifi after couple of messages. It is not working. It needs server always it seems. senthil, http://mocdoc.in
Just to clear up any misunderstanding, are you trying this on two laptops on your home network?

If so, you still need wifi for the connection between them, The cool thing about PeerJS is that the data goes directly between the computers (A <--> B) without a server in between (A <--> S <--> B).

No, in a single laptop with two different tabs of chrome browser.
Yep, that's it.

          8.  Security Considerations

             To be done.
:-(
One nice thing is that all data channels are encrypted DTLS by default
How do the endpoints authenticate each other?