@nxtedition/deepstream.io-client-js 24.1.6 → 24.1.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": "24.1.6",
3
+ "version": "24.1.7",
4
4
  "description": "the javascript client for deepstream.io",
5
5
  "homepage": "http://deepstream.io",
6
6
  "bugs": {
@@ -136,6 +136,13 @@ Connection.prototype.send = function (message) {
136
136
  return false
137
137
  }
138
138
 
139
+ if (this._endpoint._socket && !this._endpoint._socket.writableCorked) {
140
+ this._endpoint._socket.cork()
141
+ queueMicrotask(() => {
142
+ this._endpoint._socket.uncork()
143
+ })
144
+ }
145
+
139
146
  this.emit('send', message)
140
147
  this._endpoint.send(message)
141
148