feat: set publish timeout to 10 seconds

This commit is contained in:
codytseng
2025-09-12 21:52:12 +08:00
parent 7606c62b63
commit 6d7ecfe2fd

View File

@@ -150,6 +150,7 @@ class ClientService extends EventTarget {
// eslint-disable-next-line @typescript-eslint/no-this-alias
const that = this
const relay = await this.pool.ensureRelay(url)
relay.publishTimeout = 10_000 // 10s
return relay
.publish(event)
.catch((error) => {