@nxtedition/deepstream.io-client-js 24.4.3 → 24.4.4

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": "24.4.3",
3
+ "version": "24.4.4",
4
4
  "description": "the javascript client for deepstream.io",
5
5
  "homepage": "http://deepstream.io",
6
6
  "type": "module",
@@ -104,7 +104,8 @@ Connection.prototype._createEndpoint = function () {
104
104
  this._endpoint.onopen = this._onOpen.bind(this)
105
105
  this._endpoint.onerror = this._onError.bind(this)
106
106
  this._endpoint.onclose = this._onClose.bind(this)
107
- this._endpoint.onmessage = ({ data }) => this._onMessage(this._decoder.decode(data))
107
+ this._endpoint.onmessage = ({ data }) =>
108
+ this._onMessage(typeof data === 'string' ? data : this._decoder.decode(data))
108
109
  }
109
110
 
110
111
  Connection.prototype.send = function (message) {
@@ -165,7 +166,7 @@ Connection.prototype._sendAuthParams = function () {
165
166
  this._setState(C.CONNECTION_STATE.AUTHENTICATING)
166
167
  const authMessage = messageBuilder.getMsg(C.TOPIC.AUTH, C.ACTIONS.REQUEST, [
167
168
  this._authParams,
168
- '24.4.3',
169
+ '24.4.4',
169
170
  utils.isNode
170
171
  ? `Node/${process.version}`
171
172
  : globalThis.navigator && globalThis.navigator.userAgent,