simple-peer
simple-peer copied to clipboard
How this simple peer works internally
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.
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.