@qihoo/tuitui-openclaw-channel 1.0.8 → 1.0.9
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/package.json +1 -1
- package/src/channel.ts +3 -1
package/package.json
CHANGED
package/src/channel.ts
CHANGED
|
@@ -592,6 +592,8 @@ export function createTuiTuiChannelPlugin(apiRuntime: any) {
|
|
|
592
592
|
Surface: CHANNEL_ID,
|
|
593
593
|
Provider: CHANNEL_ID,
|
|
594
594
|
SenderName: msgUname || String(senderId),
|
|
595
|
+
MsgUname: msgUname,
|
|
596
|
+
UserAccount: userAccount,
|
|
595
597
|
};
|
|
596
598
|
|
|
597
599
|
// Add group-specific fields
|
|
@@ -666,7 +668,7 @@ export function createTuiTuiChannelPlugin(apiRuntime: any) {
|
|
|
666
668
|
_sendMsg = defSendMsg;
|
|
667
669
|
if (!abortSignal?.aborted) {
|
|
668
670
|
log?.warn?.(`[${CHANNEL_ID}] WebSocket Restart`);
|
|
669
|
-
startWebSocket
|
|
671
|
+
setTimeout(startWebSocket, 10e3); // 10秒后尝试重启
|
|
670
672
|
}
|
|
671
673
|
};
|
|
672
674
|
ws.on('close', () => {
|