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

How this simple peer works internally

Open gnusiva opened this issue 6 years ago • 1 comments

Hi, I want to understand how simple peer works internally. Details like which stun server it uses? if the client is under restricted NAT, how this will work? is this using any Turn Server? Give me some document which explains the whole workflow.

gnusiva avatar Oct 11 '20 10:10 gnusiva

The source code is open and it is just one file. You can open it and see STUN servers. As to work around NAT for that you need to learn what WebRTC is, simple-peer is just a convenient library on top of native browser API.

nazar-pc avatar Oct 11 '20 10:10 nazar-pc