Skip to content

Commit

Permalink
feat: 适配服务端ws qps限制报错
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Apr 1, 2024
1 parent 3ab03f6 commit aa6d4df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,9 @@ export class Cluster {
logger.warn(`与服务器断开连接: ${reason}`)
this.isEnabled = false
})
this.socket.on('exception', (err) => {
logger.error(err, 'exception')
})

const io = this.socket.io
io.on('reconnect', (attempt: number) => {
Expand Down

0 comments on commit aa6d4df

Please sign in to comment.