Skip to content

Commit

Permalink
fix:重连后重新认证
Browse files Browse the repository at this point in the history
  • Loading branch information
dezhiShen authored and dezhiShen committed Oct 15, 2023
1 parent 186671d commit 3978815
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/client/event_ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ func (cli *WebsocketEventChannel) StartListen(ctx context.Context, callback func
time.Sleep(time.Duration(internal) * time.Second)
// }
}
// 重连后需要重新认证
cli.sendIDENTIFY()
}
if err != nil {
log.Errorf("重连失败...,%v", err)
Expand Down

0 comments on commit 3978815

Please sign in to comment.