coze-dev / coze-dev/coze-js

Bug: @coze/api/ws-tools

Open
#301 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
292
Forks
99
PR merge metrics
No merged PRs in 30d

Description

我这边的需求是在Uniapp的APP端中使用 和智能体实时语音聊天的功能,但demo*(demo是uniapp Vue2版本的)在浏览器中运行没问题。但在自已项目中npm了@coze/api按照demo中的混入文件里的引入要求对应引入了import { WebsocketsEventType } from '@coze/api';和// import {
WsChatClient,
WsChatEventNames,
WsToolsUtils,
} from '@coze/api/ws-tools';但是出现了@coze/api/ws-tools报错,不论是APP端还是h5端都不行。

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported imports from @coze/api and @coze/api/ws-tools in the Uniapp APP and H5 environments, then compare them with the working Vue2 demo and its mixin file. Done means the ws-tools import resolves in both environments and the realtime voice chat flow works as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, mobile, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.