nodev icon indicating copy to clipboard operation
nodev copied to clipboard

Is it possible to auto refresh the browser after each restarting ?

Open coodoo opened this issue 12 years ago • 3 comments

Currently after each restarting, I will have to go back to chrome, move focus to address bar, and hit cmd-R to refresh the browser, is it possible for Chrome to auto refresh itself whenever the inspector is disconnected ?

Thanks.

Jeremy.

coodoo avatar Dec 13 '12 09:12 coodoo

I had an idea on how to do this, but I haven't had time to do it.

We can have the developer point to a fake inspector server, which provides an IFRAME to the real inspector. Nodev can then send a signal to the shim to refresh the inspector.

ericvicenti avatar Dec 13 '12 14:12 ericvicenti

I've been using a chrome extension called livereload which works great with sublime text editor, whenever I change something in sublime editor, the extension will refresh the browser, probably they are using the same approach ?

I was thinking maybe there could be a chrome extension that communicate with nodev via websocket so this could be more easily achieved ?

coodoo avatar Dec 13 '12 16:12 coodoo

Is it possible to create a chrome extension (like livereload - http://goo.gl/jf6Rs) that communicate with nodev via socket so whenever there's a restart, nodev can notify the extension and trigger a browser refresh ?

coodoo avatar Dec 14 '12 03:12 coodoo