Reload client sessions, when they connect with an old client js. recommended use with <a href="https://npm.im/reconnect">reconnect</a> and <a href="https://npm.im/shoe">shoe</a> or other client-side stream api.
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)