faster
faster copied to clipboard
Figure out how to Dynamically inject the WebSocket Connection Script into Any App
Instead of requiring people to include the script in their template, we should be able to inject it into the html of the page at run time. this is much harder to do than simply telling people to include a script, but by simplifying things for people we will reduce barriers to use and thus _increase adoption_. PhantomJS has this ability: http://phantomjs.org/api/webpage/method/inject-js.html This is also possible using a chrome extension: http://stackoverflow.com/questions/9515704/building-a-chrome-extension-inject-code-in-a-page-using-a-content-script Or in safari: https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/InjectingScripts/InjectingScripts.html
But... as usual, we need to support _Internet Explorer_... so none of these methods will be generally applicable...
- https://github.com/nodejitsu/node-http-proxy
- http://blog.vanamco.com/proxy-requests-in-node-js/
- http://www.catonmat.net/http-proxy-in-nodejs/
