Hacker News new | ask | show | jobs
by anonhacker 5210 days ago
I feel like this is not so hard to do with NodeJS and Web sockets.

Small NodeJS app that serves the client connection webpage and acts as a proxy. Set the proxy locally, When you get requests instead of fetching them ask the socket for the data and headers.

On the client just do an XMLHttpRequest for whatever and shove it back down the web socket to the proxy server. Done, Right? I'll do a little experiment when i have time...