omnirtc-web 1.5.1 → 1.7.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.
package/README.md CHANGED
@@ -141,6 +141,15 @@ aigc.update(TaskTypeEnum.UPDATE_PROMPT, data)
141
141
  // 更多功能可以查看TaskTypeEnum的定义
142
142
  ```
143
143
 
144
+ ## 绑定RTCClient与Aigc实例,接收来自rtc房间的aigc消息
145
+ ```javascript
146
+ import { Events } from 'omnirtc-web/aigc'
147
+ aigc.on(Events.MESSAGE, (data) => {
148
+ console.log('receive aigc message: ', data)
149
+ })
150
+ aigc.bind(client);
151
+ ```
152
+
144
153
  ## 停止Aigc
145
154
 
146
155
  ```javascript