Ask Echo JS: Who wants to help create a client side server?
▼2 up and 0 down, posted by
2 up and 0 down, posted by
#Context Two month ago I discovered the WebRTC APIs. It is still a [w3c editors draft](http://w3c.github.io/webrtc-pc/) but some functionality is available with prefixes in chrome and firefox today. These APIs enable direct client to client communication, which was previously impossible in the browser (without a plugin). #New possibilities This means it is also possible to serve HTML or develop APIs on a client and answer directly to requests from another client, and acting as a pseudo server, without that a real server handling that information flow. I made a minimal example of this. #However The real server is somehow still needed. First of, two clients don't have public addresses like server have with URLs, that means to start a connection between two peers , a server is needed to initiate the conversation. Also a server is needed to deliver the initial HTML and JS. #Theory The challenge is to resolve the 2 problems listed above: Here are my first ideas: Giving one of the clients the same code as the server uses, and run it from there. This means a client could initiate the conversation between two other client. Using service workers and local storage we could partially solve the second problem #In practice That is the call for action: Who wants to help create a client side server. We need to engineer something together and then implement the system with code. I need you to speed up the research. #How to apply: Reply to this message with a message proving you are willing to make this a reality