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

Multiple livereload.js on same page does not work #143

Open
pmwmedia opened this issue Jun 5, 2021 · 1 comment
Open

Multiple livereload.js on same page does not work #143

pmwmedia opened this issue Jun 5, 2021 · 1 comment

Comments

@pmwmedia
Copy link

pmwmedia commented Jun 5, 2021

I have a website with three different livereload.js scripts included:

<script id="webpack-livereload-plugin-script-2b46959be903b68a" async="" src="//localhost:35729/livereload.js"></script>
<script id="webpack-livereload-plugin-script-40d0cd75cb7a994d" async="" src="//localhost:35730/livereload.js"></script>
<script id="webpack-livereload-plugin-script-15a04157ba643cb0" async="" src="//localhost:35731/livereload.js"></script>

However, I have noticed in the network monitor of my browser that the URLs are incorrectly mapped:

http://localhost:35729/livereload.js -> ws://localhost:35729/livereload
http://localhost:35730/livereload.js -> ws://localhost:35729/livereload
http://localhost:35731/livereload.js -> ws://localhost:35729/livereload

All three HTTP-URLs are mapped to the same WS-URL! How can I use multiple livereload.js scripts in the same HTML page?

(Originally, I had submitted my issue on statianzo/webpack-livereload-plugin#69. However, after reading the source code of the webpack-livereload-plugin, I understood that this incorrect mapping is coming from tiny-lr.)

@callmeteus
Copy link

Actually, it's a very very old issue with livereload-js: livereload/livereload-js#30

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