xolvio / meteor-http-interceptor

Intercepts HTTP calls and allows fake implementations to take over entire domains. Used for testing.
13 stars 5 forks source link

Adding Proxy for Client Side Intercepts #7

Open workflow opened 9 years ago

workflow commented 9 years ago

Neat! I set up a proxy and it seems to be running fine with a couple of limitations (lurking below).

Questions

  1. Telling Selenium/Webdriver to use the proxy should probably happen in chimp, right? How do we best wire the two together?
  2. Proxy supports HTTP only so far. Writing an actual HTTPS proxy with certificates and cross-browser settings seems a bit daunting for the task. I thought of just replacing any references to (intercepted) https:// calls directly in the DOM. Have a better idea or more experience setting up a proxy? :)
  3. Should we spawn the proxy process with sanjo:long-running-child-process? It seems to work fine without, but maybe I'm missing some edge cases or other benefits.
  4. Should we have the proxy run on the velocity mirror only?

    TODO

    • [ ] Handle HTTPS
    • [ ] Support WebSockets
    • [ ] Wire up with Chimp?
    • [ ] Should it run on mirror only?
    • [ ] Spawn process with sanjo:long-running-child-process?
samhatoum commented 9 years ago

So sorry for the delays, this looks great. I'm slammed these days and I promise to get to this when I get a chance

workflow commented 9 years ago

No rush, we're all slammed these days it seems

ramijarrar commented 9 years ago

Waiting eagerly for this :)