larksr_websdk 3.2.312 → 3.2.314

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.
@@ -15,6 +15,6 @@ export default class Message {
15
15
  static getStartStreamResponseMsg(ressponse: Msg.CloudLark.StartStreamResponse.Response): string;
16
16
  static getCloudlarkTaskEvent(ressponse: Msg.CloudLark.TaskResponse.Response): LarkEventType;
17
17
  static getCloudlarkStartStreamEvent(ressponse: Msg.CloudLark.StartStreamResponse.Response): LarkEventType;
18
- static getCloudlarkTaskEventMsg(type: LarkEventType): string;
18
+ static getCloudlarkTaskEventMsg(type: LarkEventType, reason?: string | null | undefined): string;
19
19
  static getCloudlarkStartStreamingEventMsg(type: LarkEventType): string;
20
20
  }
@@ -145,6 +145,7 @@ declare enum LarkSRClientEvent {
145
145
  DATACHANNEL_CLOSE = "datachannelclose",
146
146
  /**
147
147
  * 数据通达收到文字消息 .
148
+ * > V3.2.314 版本对应服务器版本和数据通道版本为 3.2.5.1 及以上
148
149
  */
149
150
  DATACHANNEL_TEXT = "datachanneltext",
150
151
  /**
@@ -564,6 +565,7 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
564
565
  /**
565
566
  * 发送文字消息给数据通道
566
567
  * 注意 云端应用要继承数据通道功能
568
+ * > V3.2.314 版本对应服务器版本和数据通道版本为 3.2.5.1 及以上
567
569
  * @param text 文字
568
570
  */
569
571
  sendTextToDataChannel(text: string): void;
@@ -433,6 +433,9 @@ export namespace CloudLark {
433
433
 
434
434
  /** TaskResponse prestart */
435
435
  prestart?: (boolean|null);
436
+
437
+ /** TaskResponse reason */
438
+ reason?: (string|null);
436
439
  }
437
440
 
438
441
  /** Represents a TaskResponse. */
@@ -453,6 +456,9 @@ export namespace CloudLark {
453
456
  /** TaskResponse prestart. */
454
457
  public prestart: boolean;
455
458
 
459
+ /** TaskResponse reason. */
460
+ public reason: string;
461
+
456
462
  /**
457
463
  * Creates a new TaskResponse instance using the specified properties.
458
464
  * @param [properties] Properties to set
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "larksr_websdk",
3
- "version": "3.2.312",
3
+ "version": "3.2.314",
4
4
  "description": "Larksr websdk. Easy to build a cloud render client for larksr system or ue4 pixelstreaming.docs: https://pingxingyun.github.io/webclient_sdk/",
5
5
  "keywords": [
6
6
  "pingxingyun",
@@ -15,6 +15,6 @@ export default class Message {
15
15
  static getStartStreamResponseMsg(ressponse: Msg.CloudLark.StartStreamResponse.Response): string;
16
16
  static getCloudlarkTaskEvent(ressponse: Msg.CloudLark.TaskResponse.Response): LarkEventType;
17
17
  static getCloudlarkStartStreamEvent(ressponse: Msg.CloudLark.StartStreamResponse.Response): LarkEventType;
18
- static getCloudlarkTaskEventMsg(type: LarkEventType): string;
18
+ static getCloudlarkTaskEventMsg(type: LarkEventType, reason?: string | null | undefined): string;
19
19
  static getCloudlarkStartStreamingEventMsg(type: LarkEventType): string;
20
20
  }
package/types/larksr.d.ts CHANGED
@@ -145,6 +145,7 @@ declare enum LarkSRClientEvent {
145
145
  DATACHANNEL_CLOSE = "datachannelclose",
146
146
  /**
147
147
  * 数据通达收到文字消息 .
148
+ * > V3.2.314 版本对应服务器版本和数据通道版本为 3.2.5.1 及以上
148
149
  */
149
150
  DATACHANNEL_TEXT = "datachanneltext",
150
151
  /**
@@ -564,6 +565,7 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
564
565
  /**
565
566
  * 发送文字消息给数据通道
566
567
  * 注意 云端应用要继承数据通道功能
568
+ * > V3.2.314 版本对应服务器版本和数据通道版本为 3.2.5.1 及以上
567
569
  * @param text 文字
568
570
  */
569
571
  sendTextToDataChannel(text: string): void;
@@ -433,6 +433,9 @@ export namespace CloudLark {
433
433
 
434
434
  /** TaskResponse prestart */
435
435
  prestart?: (boolean|null);
436
+
437
+ /** TaskResponse reason */
438
+ reason?: (string|null);
436
439
  }
437
440
 
438
441
  /** Represents a TaskResponse. */
@@ -453,6 +456,9 @@ export namespace CloudLark {
453
456
  /** TaskResponse prestart. */
454
457
  public prestart: boolean;
455
458
 
459
+ /** TaskResponse reason. */
460
+ public reason: string;
461
+
456
462
  /**
457
463
  * Creates a new TaskResponse instance using the specified properties.
458
464
  * @param [properties] Properties to set