diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config.js | 2 | ||||
-rw-r--r-- | lib/realtime.js | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/config.js b/lib/config.js index 3828e2dc..27e4ed91 100644 --- a/lib/config.js +++ b/lib/config.js @@ -78,11 +78,13 @@ function getserverurl() { } var version = '0.4.2'; +var minimumCompatibleVersion = '0.4.2'; var maintenance = true; var cwd = path.join(__dirname, '..'); module.exports = { version: version, + minimumCompatibleVersion: minimumCompatibleVersion, maintenance: maintenance, debug: debug, urlpath: urlpath, diff --git a/lib/realtime.js b/lib/realtime.js index b7a17d34..8ed54437 100644 --- a/lib/realtime.js +++ b/lib/realtime.js @@ -708,7 +708,10 @@ function connection(socket) { //check version socket.on('version', function () { - socket.emit('version', config.version); + socket.emit('version', { + version: config.version, + minimumCompatibleVersion: config.minimumCompatibleVersion + }); }); //received cursor focus |