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 servers one script #30

Open
gad2103 opened this issue Jan 30, 2015 · 4 comments
Open

multiple servers one script #30

gad2103 opened this issue Jan 30, 2015 · 4 comments

Comments

@gad2103
Copy link

gad2103 commented Jan 30, 2015

It would be awesome if this could listen to several servers running on different ports. That way events from different servers could trigger changes. Any ideas on how to do this?

@andreyvit
Copy link
Member

Well my plan is for the next version of LiveReload protocol to support relaying messages, so that after one server starts listening on the port, other servers will be able to connect and talk to the connected browsers.

I think that it makes sense for the browser side to stay as simple as possible and only connect to a single server.

@gad2103
Copy link
Author

gad2103 commented Jan 31, 2015

I see your point but it would be nice for the client to be able to pass in
an options object with a list of ports. My use case is not uncommon:
wanting to run separate watch tasks through grunt that are completely
independent of each other but still want to reload the browser. Each watch
task can be configured to run on a different port and relay messages to one
script in the client....
On Jan 31, 2015 11:13 AM, "Andrey Tarantsov" [email protected]
wrote:

Well my plan is for the next version of LiveReload protocol to support
relaying messages, so that after one server starts listening on the port,
other servers will be able to connect and talk to the connected browsers.

I think that it makes sense for the browser side to stay as simple as
possible and only connect to a single server.


Reply to this email directly or view it on GitHub
#30 (comment)
.

@andreyvit
Copy link
Member

Is there a reason why this use case is not covered by what I have described?

@pbedat
Copy link

pbedat commented May 2, 2018

I think relaying is a great idea @andreyvit! Do you already have it on the roadmap?

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

3 participants