@nxtedition/deepstream.io-client-js 23.4.6 → 23.4.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/deepstream.io-client-js",
3
- "version": "23.4.6",
3
+ "version": "23.4.7",
4
4
  "description": "the javascript client for deepstream.io",
5
5
  "homepage": "http://deepstream.io",
6
6
  "bugs": {
@@ -11,7 +11,8 @@ class Listener {
11
11
  this._connection = this._handler._connection
12
12
  this._subscriptions = new Map()
13
13
  this._stringify = stringify || JSON.stringify
14
- this._value = null
14
+ this._data = ''
15
+ this._version = ''
15
16
 
16
17
  this._$onConnectionStateChange()
17
18
 
@@ -73,15 +74,16 @@ class Listener {
73
74
  throw new Error(`invalid value: ${value}`)
74
75
  }
75
76
 
76
- if (value === this._value) {
77
+ if (data === this._data) {
77
78
  return
78
79
  }
79
80
 
80
- this._value = value
81
+ this._data = data
82
+ this._version = `INF-${this._connection.hasher.h64ToString(data)}`
81
83
  this._connection.sendMsg(this._topic, C.ACTIONS.UPDATE, [
82
84
  name,
83
- `INF-${this._connection.hasher.h64ToString(data)}`,
84
- data,
85
+ this._version,
86
+ this._data,
85
87
  ])
86
88
  },
87
89
  error: (err) => {