-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我试图在房间中say消息有时候会报错,导致项目停止运行 #2695
Comments
To address the Here's a strategy to improve your error handling:
For implementing a retry mechanism, you can wrap your Here's a simplified example using import { retryPolicy } from './retry-policy'; // Adapt this path to where your retry policy is defined
async function safeSay(room, message) {
await retryPolicy.execute(async () => {
await room.say(message);
});
} This
|
@aqpmzngldh feel free to continue this conversation at https://discord.com/channels/916984413944967180/917009119595081729/1239325991562776576 Join discord: https://discord.gg/7q8NBZbQzt |
这是错误信息Error: read ECONNRESET
at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)然后我捕获了也没用.on('error', err => {
console.error('错误:', err)
})
The text was updated successfully, but these errors were encountered: