nodev
nodev copied to clipboard
Is it possible to auto refresh the browser after each restarting ?
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.
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.
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 ?
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 ?