mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-03 06:01:30 +08:00
websocket update
This commit is contained in:
parent
c758628701
commit
284e89d410
@ -106,6 +106,12 @@ func (ws *WServer) readMsg(conn *UserConn) {
|
||||
ws.delUserConn(conn)
|
||||
return
|
||||
}
|
||||
if messageType == websocket.CloseMessage {
|
||||
log.NewWarn("", "WS receive error ", " userIP", conn.RemoteAddr().String(), "userUid", "platform", "error", string(msg))
|
||||
userCount--
|
||||
ws.delUserConn(conn)
|
||||
return
|
||||
}
|
||||
log.NewDebug("", "size", utils.ByteSize(uint64(len(msg))))
|
||||
if conn.IsCompress {
|
||||
buff := bytes.NewBuffer(msg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user