4 ms·
TL;DR: This is a proxy server that routes HTTP requests from a unique subdomain (e.g. http://m7rp3u2ntr9t3xr.browserver.org http://m7rp3u2ntr9t3xr.browserver.or
by arturadib 14y ago
TL;DR: This is a proxy server that routes HTTP requests from a unique subdomain (e.g. http://m7rp3u2ntr9t3xr.browserver.org http://m7rp3u2ntr9t3xr.browserver.org) to a browser that's visiting browserver.org. The JavaScript in the browser then handles the HTTP response. This is possible thanks to a persistent connection between the browser and browserver.org, via some "websocket-like" protocol.
The title "node.js HTTP server, in your browser" is because the HTTP handler in the client (browser) has a Node-like API, see:
https://github.com/jed/browserver-client#example https://github.com/jed/browserver-client#example
- jedschmidt 14y agoThank you for explaining this much better than I did!
- fichtl80 14y agoi get a gateway error
- bilalhusain 14y agohttp://www.realtime.co/ http://www.realtime.co/