@nxtedition/deepstream.io-client-js 23.4.12 → 23.4.13

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.12",
3
+ "version": "23.4.13",
4
4
  "description": "the javascript client for deepstream.io",
5
5
  "homepage": "http://deepstream.io",
6
6
  "bugs": {
@@ -69,17 +69,17 @@
69
69
  "xxhash-wasm": "^1.0.2"
70
70
  },
71
71
  "devDependencies": {
72
- "eslint": "^8.38.0",
72
+ "eslint": "^8.42.0",
73
73
  "eslint-config-prettier": "^8.8.0",
74
- "eslint-config-standard": "^17.0.0",
74
+ "eslint-config-standard": "^17.1.0",
75
75
  "eslint-plugin-import": "^2.27.5",
76
- "eslint-plugin-n": "^15.7.0",
76
+ "eslint-plugin-n": "^16.0.0",
77
77
  "eslint-plugin-node": "^11.1.0",
78
78
  "eslint-plugin-promise": "^6.1.1",
79
79
  "husky": "^8.0.3",
80
- "lint-staged": "^13.2.1",
80
+ "lint-staged": "^13.2.2",
81
81
  "pinst": "^3.0.0",
82
- "prettier": "^2.8.7"
82
+ "prettier": "^2.8.8"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "rxjs": ">=6.x"
@@ -136,10 +136,17 @@ Connection.prototype.send = function (message) {
136
136
  return
137
137
  }
138
138
 
139
- this._sendQueue.push(message)
140
- if (!this._processingSend) {
139
+ if (this._processingSend) {
140
+ this._sendQueue.push(message)
141
+ } else if (
142
+ this._state === C.CONNECTION_STATE.OPEN &&
143
+ this._endpoint.readyState === this._endpoint.OPEN
144
+ ) {
145
+ this._submit(message)
146
+ } else {
147
+ this._sendQueue.push(message)
141
148
  this._processingSend = true
142
- this._schedule(this._sendMessages)
149
+ this._sendMessages()
143
150
  }
144
151
  }
145
152