Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify & add to docs to communicate to the "external" site #82

Closed
kostafey opened this issue Jul 24, 2017 · 2 comments
Closed

Simplify & add to docs to communicate to the "external" site #82

kostafey opened this issue Jul 24, 2017 · 2 comments

Comments

@kostafey
Copy link

For example, there is an application running on localhost:8080.

The steps to communicate to this "external" site.

  1. (setq httpd-port 8081) in .emacs
  2. Install greasemonkey for Firefox or tampermonkey for Chrome.
  3. Add skewer-everything.user.js script.
  4. Modify this script:
var host = 'http://localhost:8081';
  1. M-x run-skewer (get new tab for localhost:8081)
  2. M-x skewer-repl
  3. Reload target "external" localhost:8080 tab in browser
  4. At this point, you'll get 2 clients in skewer-repl. So you have to close localhost:8081 tab.

Is there are any simpler way?

@skeeto
Copy link
Owner

skeeto commented Jul 27, 2017 via email

@kostafey
Copy link
Author

Oh, really. Thank you. But if you need to reload original localhost:8080, you will get 2 results any time you run js code (one from original "remote" localhost:8080, other from plain js process) until you close skewer localhost:8081 tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants