mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 21:02:11 +08:00
refactor: websocket update info.
This commit is contained in:
parent
4cd4f680d9
commit
2d0aaccec8
@ -424,7 +424,7 @@ func (ws *WsServer) wsHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
shouldSendSuccessResp := connContext.ShouldSendResp()
|
shouldSendSuccessResp := connContext.ShouldSendResp()
|
||||||
if shouldSendSuccessResp {
|
if shouldSendSuccessResp {
|
||||||
// Attempt to send a success message through WebSocket
|
// Attempt to send a success message through WebSocket
|
||||||
if err := wsLongConn.RespondWithSuccess(); err == nil {
|
if err := wsLongConn.RespondWithSuccess(); err != nil {
|
||||||
// If the success message is successfully sent, end further processing
|
// If the success message is successfully sent, end further processing
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user