dolphindb 2.0.945 → 2.0.946

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.d.ts CHANGED
@@ -554,7 +554,9 @@ export declare class DDB {
554
554
  private on_message;
555
555
  private on_error;
556
556
  /** 调用后会确保和数据库的连接是正常的 (this.connected === true && this.errored === false),否则抛出错误
557
- 这个方法是幂等的,首次调用建立实际的 WebSocket 连接到 URL 对应的 DolphinDB,后续调用检查上面的条件
557
+ 这个方法是幂等的,首次调用建立实际的 WebSocket 连接到 URL 对应的 DolphinDB,然后执行自动登录,
558
+ 如果是流数据连接,还会调用 publishTable 订阅流表
559
+ 后续调用检查上面的条件
558
560
  连接断开后禁止再次调用 connect 重连原有 ddb 对象,应该通过 new DDB() 的方式新建连接对象,原因是:
559
561
  1. on_error 回调和某个 websocket 绑定了,不方便解绑后重新绑定
560
562
  2. session 是有状态的,重连也无法恢复之前的状态
package/index.js CHANGED
@@ -2258,7 +2258,9 @@ export class DDB {
2258
2258
  // 这里的实现一定会被 connect, rpc 中的实现覆盖
2259
2259
  }
2260
2260
  /** 调用后会确保和数据库的连接是正常的 (this.connected === true && this.errored === false),否则抛出错误
2261
- 这个方法是幂等的,首次调用建立实际的 WebSocket 连接到 URL 对应的 DolphinDB,后续调用检查上面的条件
2261
+ 这个方法是幂等的,首次调用建立实际的 WebSocket 连接到 URL 对应的 DolphinDB,然后执行自动登录,
2262
+ 如果是流数据连接,还会调用 publishTable 订阅流表
2263
+ 后续调用检查上面的条件
2262
2264
  连接断开后禁止再次调用 connect 重连原有 ddb 对象,应该通过 new DDB() 的方式新建连接对象,原因是:
2263
2265
  1. on_error 回调和某个 websocket 绑定了,不方便解绑后重新绑定
2264
2266
  2. session 是有状态的,重连也无法恢复之前的状态