var reconnect = require'reconnect'var reloader = require'client-reloader'reconnectreloader//your good! use the stream!metaconnect'/shoe'
When the client reconnects, the server will send the current version, if it is different to the server version, the client will reload.
var shoe = require'shoe'var reloader = require'client-reloader'var ecstatic = require'ecstatic'shoereloader//the client has successfull connected,//with the right version!//also, here is the metadata passed from the client.console.logstreammetaVERSIONinstall//serve static files.httpcreateServerecstatic__dirname+'/static'listenPORT'/shoe'
VERSION is optional.
If this is not defined it will default to the timestamp that you started the server.
This will make clients restart whenever you restart the server.
(probably good behaviour for dev mode)