gruntjs / grunt-contrib-connect

Start a static web server.
http://gruntjs.com
MIT License
714 stars 145 forks source link

Livereload without separate port? #113

Closed yang closed 10 years ago

yang commented 10 years ago

Is there any way to make livereload not require a separate port, but instead use the existing HTTP port? This makes it harder to use the site via services like localtunnel or to work in some environment that doesn't have that port open.

jamesplease commented 10 years ago

@yang this would be a question for tiny-lr and not this task, but I think that the answer is no, and that it must use its own dedicated port. With that said you can specify which port you'd like to use by specifying a number as the value of livereload.

yang commented 10 years ago

I guess this was more intended as a feature request.... I know about specifying a port, but that doesn't really help in the example situations I described. It would make livereload much more usable/accessible to serve it inline, which is something that is very possibly to do with websockets.