mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 10:52:33 +08:00
ws
This commit is contained in:
parent
16a3c97169
commit
aff2aadc1f
@ -488,7 +488,6 @@ type WSArgs struct {
|
||||
func (ws *WsServer) wsHandler(w http.ResponseWriter, r *http.Request) {
|
||||
connContext := newContext(w, r)
|
||||
args, pErr := ws.ParseWSArgs(r)
|
||||
log.ZDebug(connContext, "http websocket req", "MsgResp", args.MsgResp, "query", r.URL.RawQuery)
|
||||
var wsLongConn *GWebSocket
|
||||
if args.MsgResp {
|
||||
wsLongConn = newGWebSocket(WebSocket, ws.handshakeTimeout, ws.writeBufferSize)
|
||||
@ -501,7 +500,6 @@ func (ws *WsServer) wsHandler(w http.ResponseWriter, r *http.Request) {
|
||||
_ = wsLongConn.Close()
|
||||
return
|
||||
}
|
||||
log.ZDebug(connContext, "http websocket MsgResp", "data", string(data))
|
||||
if err := wsLongConn.WriteMessage(MessageText, data); err != nil {
|
||||
_ = wsLongConn.Close()
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user