@flyingfly/chat-box
v0.0.85
Published
```js <ChatBox onStart={onStart} onError={(type, error) => { console.debug(type, error); }} /> ```
Readme
使用方法
<ChatBox
onStart={onStart}
onError={(type, error) => {
console.debug(type, error);
}}
/>const onStart = async (ref: ChatBoxImperativeHandle) => {
await ref?.startCall({
mode: 'video',
config: {
appId: 'xxxxxx',
conversationId: 'xxxxxx',
appKey: 'xxxxxx',
userId: 'xxxx',
platform: 'prevshow.guiji.ai'
}
});
};