diff --git a/README.md b/README.md index c28e4a58..c1804116 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ ![Logo](admin/habpanel.png) # ioBroker.habpanel -================= ![Number of Installations](http://iobroker.live/badges/habpanel-installed.svg) ![Number of Installations](http://iobroker.live/badges/habpanel-stable.svg) [![NPM version](http://img.shields.io/npm/v/iobroker.habpanel.svg)](https://www.npmjs.com/package/iobroker.habpanel) [![Downloads](https://img.shields.io/npm/dm/iobroker.habpanel.svg)](https://www.npmjs.com/package/iobroker.habpanel) @@ -47,6 +46,8 @@ This adapter cannot be installed directly from github. Only from npm. ## Changelog +### 0.4.2 (2020-08-22) +* (bluefox) The compatibility to socket.io 3.0.13 provided ### 0.4.1 (2020-02-10) * (Apollon77) compatibility to web 3.0 @@ -84,3 +85,8 @@ This adapter cannot be installed directly from github. Only from npm. ### 0.1.6 (2017-05-15) * (bluefox) initial commit + +## License +Copyright 2017-2020 bluefox + +Eclipse Public License diff --git a/io-package.json b/io-package.json index 8157231a..1d2fef60 100644 --- a/io-package.json +++ b/io-package.json @@ -1,8 +1,20 @@ { "common": { "name": "habpanel", - "version": "0.4.1", + "version": "0.4.2", "news": { + "0.4.2": { + "en": "The compatibility to socket.io 3.0.13 provided ", + "de": "Die Kompatibilität zu socket.io 3.0.13 wird bereitgestellt", + "ru": "Обеспечена совместимость с socket.io 3.0.13", + "pt": "A compatibilidade com socket.io 3.0.13 fornecida", + "nl": "De compatibiliteit met socket.io 3.0.13 wordt geboden", + "fr": "La compatibilité avec socket.io 3.0.13 fournie", + "it": "La compatibilità con socket.io 3.0.13 fornita", + "es": "La compatibilidad con socket.io 3.0.13 proporcionada", + "pl": "Zapewniona kompatybilność z socket.io 3.0.13", + "zh-cn": "提供与socket.io 3.0.13的兼容性" + }, "0.4.1": { "en": "compatibility with Web >= 3.0.0 added", "de": "Kompatibilität mit Web >= 3.0.0 hinzugefügt", diff --git a/package.json b/package.json index 24d7fd97..23a83074 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "iobroker.habpanel", "description": "Dashboard based on HABPanel", - "version": "0.4.1", + "version": "0.4.2", "author": { "name": "Yannick Schaus", "email": "habpanel@schaus.net" @@ -70,7 +70,7 @@ }, "dependencies": { "bower": "^1.8.4", - "@iobroker/adapter-core": "^1.0.3" + "@iobroker/adapter-core": "^2.4.0" }, "bugs": { "url": "https://github.com/iobroker-community-adapters/ioBroker.habpanel/issues" diff --git a/src/vendor/conn.js b/src/vendor/conn.js index 4fb7d623..175a367b 100644 --- a/src/vendor/conn.js +++ b/src/vendor/conn.js @@ -457,8 +457,8 @@ var servConn = { getVersion: function (callback) { if (!this._checkConnection('getVersion', arguments)) return; - this._socket.emit('getVersion', function (version) { - if (callback) callback(version); + this._socket.emit('getVersion', function (error, version) { + callback && callback(version || error); }); }, subscribe: function (idOrArray, callback) { @@ -481,9 +481,8 @@ var servConn = { console.log('socket.io not initialized'); return; } - this._socket.emit('getVersion', function (version) { - if (callback) - callback(version); + this._socket.emit('getVersion', function (error, version) { + callback && callback(version || error); }); }, readFile: function (filename, callback, isRemote) {