@ynhcj/xiaoyi-channel 0.0.65-next → 0.0.66-next
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/dist/src/websocket.js +1 -1
- package/package.json +1 -1
package/dist/src/websocket.js
CHANGED
|
@@ -322,7 +322,7 @@ export class XYWebSocketManager extends EventEmitter {
|
|
|
322
322
|
const messageStr = data.toString();
|
|
323
323
|
console.log(`[WS-RECV] Raw message frame, size: ${messageStr.length} characters`);
|
|
324
324
|
const parsed = JSON.parse(messageStr);
|
|
325
|
-
console.log(`[WS-RECV] Raw message content: ${parsed}`);
|
|
325
|
+
console.log(`[WS-RECV] Raw message content: ${JSON.stringify(parsed)}`);
|
|
326
326
|
// 提取并打印消息内容(只显示 text,data 只打印提示)
|
|
327
327
|
const parts = parsed.params?.message?.parts;
|
|
328
328
|
if (parts && Array.isArray(parts) && parts.length > 0) {
|