pm2-dev-refresh

(experimental) # PM2-DEV-Refresh is a extension for [PM2](https://github.com/Unitech/pm2 "PM2") , The modern and stable CLI process manager for Node apps with native clusterization, monitoring, startup scripts and much more. It will automatically refresh the browser after you save a file.

Usage no npm install needed!

<script type="module">
  import pm2DevRefresh from 'https://cdn.skypack.dev/pm2-dev-refresh';
</script>

README

Add this to your clientside template:

var socket = io.connect('http://localhost:3333'); socket.on('refresh', function(){ console.log('REFRESH!'); window.location.reload(); });