0.0.3 • Published 11 years ago
pm2-dev-refresh v0.0.3
Add this to your clientside template:
var socket = io.connect('http://localhost:3333'); socket.on('refresh', function(){ console.log('REFRESH!'); window.location.reload(); });
Add this to your clientside template:
var socket = io.connect('http://localhost:3333'); socket.on('refresh', function(){ console.log('REFRESH!'); window.location.reload(); });