Skip to content

Commit

Permalink
### 0.4.2 (2020-08-22)
Browse files Browse the repository at this point in the history
* (bluefox) The compatibility to socket.io 3.0.13 provided
  • Loading branch information
GermanBluefox committed Aug 22, 2020
1 parent 0939f09 commit 9dbb05f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 <[email protected]>

Eclipse Public License
14 changes: 13 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]"
Expand Down Expand Up @@ -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"
Expand Down
9 changes: 4 additions & 5 deletions src/vendor/conn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 9dbb05f

Please sign in to comment.