WeGit icon indicating copy to clipboard operation
WeGit copied to clipboard

What is the purpose of the "signaling" folder??

Open morsedev opened this issue 5 years ago • 1 comments

Hi!!, I think this is a very interesting project but I would like to know if it is needed any server to make it works from source code. I saw the "signaling" folder that appears to have some firebase anda http-server code that I really don't know what does.

morsedev avatar Dec 27 '20 12:12 morsedev

Hi! Thank you! Yeah I need to create some docs to make the source code more useful. I'll do a bit later :)

No server is needed. By the end of the build you get html file. The signalling servers are needed to do "the signalling" 😄 . Basically it is the concept in WebRTC for helping peers to find each other. By default we have manual signalling, it's when users send each other offer & answer manually(it is what happens here https://youtu.be/8gKFht_PRpE?t=150).

That is okay for first try or for some extreme situations. But overall we'd want to have some automatic signalling in place. For this we have support for firebase/https signalling. I thought to keep signalling options open for the time being, but later I hope to come with some specific solution

welldan97 avatar Dec 29 '20 23:12 welldan97