dolphindb 2.0.937 → 2.0.938

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/index.js CHANGED
@@ -2624,7 +2624,8 @@ export class DDB {
2624
2624
  };
2625
2625
  // 先准备好收到 websocket message 的 callback
2626
2626
  this.on_message = buffer => {
2627
- let { streaming } = this;
2627
+ // 复制一份,避免 handler 中异步直接使用传入的 streaming 这个对象时属性发生变化
2628
+ let streaming = { ...this.streaming, error: null };
2628
2629
  try {
2629
2630
  const dv = new DataView(buffer);
2630
2631
  const buf = new Uint8Array(buffer);