clickgo 4.1.9 → 4.2.0

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.
@@ -288,6 +288,13 @@ export declare function postResponseEventStream(url: string, data: Record<string
288
288
  'init'?: RequestInit;
289
289
  /** --- 连接成功建立的回调 --- */
290
290
  onStart?: () => void | Promise<void>;
291
+ /** --- 初始化回调(不一定会有) --- */
292
+ onInit?: (data: {
293
+ /** --- chat uid --- */
294
+ 'uid': string;
295
+ /** --- chat name --- */
296
+ 'name': string;
297
+ }) => void | Promise<void>;
291
298
  /** --- 来数据了 --- */
292
299
  onData?: (chunk: string) => void | Promise<void>;
293
300
  /** --- 结束事件回调,主动结束、错误也会回调 --- */
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "4.1.9",
3
+ "version": "4.2.0",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "type": "module",
6
6
  "keywords": [