feat: add background to conn args when client ws recon

This commit is contained in:
Gordon
2023-06-11 15:32:53 +08:00
parent 3d119d4632
commit e04f633fab
4 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ func (ws *WsServer) wsHandler(w http.ResponseWriter, r *http.Request) {
}
}
client := ws.clientPool.Get().(*Client)
client.ResetClient(context, wsLongConn, compression, ws)
client.ResetClient(context, wsLongConn, context.GetBackground(), compression, ws)
ws.registerChan <- client
go client.readMessage()
}