@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 +3 -1
- package/README.zh-CN.md +3 -1
- package/dist/cjs/index.cjs +2155 -1355
- package/dist/cjs/index.cjs.LICENSE.txt +22 -0
- package/dist/esm/index.js +2157 -1357
- package/dist/esm/index.js.LICENSE.txt +22 -0
- package/dist/types/client.d.ts +2 -1
- package/dist/types/index.d.ts +11 -1
- package/dist/umd/index.js +2155 -1355
- package/dist/umd/index.js.LICENSE.txt +22 -0
- package/package.json +18 -6
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
|
// 事件处理
|