@coze/realtime-api 1.0.4 → 1.0.5

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/README.md CHANGED
@@ -83,7 +83,9 @@ const operations = {
83
83
  disconnect: () => client.disconnect(),
84
84
  interrupt: () => client.interrupt(),
85
85
  toggleMicrophone: (enabled: boolean) => client.setAudioEnable(enabled),
86
- checkConnection: () => client.isConnected
86
+ checkConnection: () => client.isConnected,
87
+ // get rtc engine instance, for detail visit https://www.volcengine.com/docs/6348/104478#rtcengine
88
+ getRtcEngine: () => client.getRtcEngine(),
87
89
  };
88
90
 
89
91
  // Event Handling
package/README.zh-CN.md CHANGED
@@ -79,7 +79,9 @@ const operations = {
79
79
  disconnect: () => client.disconnect(),
80
80
  interrupt: () => client.interrupt(),
81
81
  toggleMicrophone: (enabled: boolean) => client.setAudioEnable(enabled),
82
- checkConnection: () => client.isConnected
82
+ checkConnection: () => client.isConnected,
83
+ // 获取 RTC 引擎实例,详情请访问 https://www.volcengine.com/docs/6348/104478#rtcengine
84
+ getRtcEngine: () => client.getRtcEngine(),
83
85
  };
84
86
 
85
87
  // 事件处理