@iobroker/socket-classes 0.4.8 → 0.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -69,7 +69,7 @@ io.close();
69
69
  -->
70
70
 
71
71
  ## Changelog
72
- ### 0.4.8 (2022-06-20)
72
+ ### 0.4.9 (2022-06-20)
73
73
  * (bluefox) Do not show error with failed authentication
74
74
 
75
75
  ### 0.4.7 (2022-06-20)
@@ -108,7 +108,9 @@ class SocketCommon {
108
108
  this.server.on('error', (error, details) => {
109
109
  // ignore "failed connection" as it already shown
110
110
  if (!error || !error.message || !error.message.includes('failed connection')) {
111
- if (error && error.message && error.message.includes('authentication failed')) {
111
+ if ((error && error.message && error.message.includes('authentication failed') ||
112
+ (details && details.includes('authentication failed')))
113
+ ) {
112
114
  this.adapter.log.debug(`Error: ${(error && error.message) || JSON.stringify(error)}${details ? ' - ' + details : ''}`);
113
115
  } else {
114
116
  this.adapter.log.error(`Error: ${(error && error.message) || JSON.stringify(error)}${details ? ' - ' + details : ''}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/socket-classes",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "ioBroker server-side web sockets",
5
5
  "author": {
6
6
  "name": "bluefox",