ws update

This commit is contained in:
Gordon 2023-03-24 16:56:02 +08:00
parent 7e7d5fc41b
commit c8ba439a2c

View File

@ -71,6 +71,9 @@ func (c *Client) ResetClient(ctx *UserConnContext, conn LongConn, isCompress boo
c.userID = ctx.GetUserID()
c.ctx = ctx
c.longConnServer = longConnServer
c.isBackground = false
c.closed = false
c.closedErr = nil
}
func (c *Client) pongHandler(_ string) error {
c.conn.SetReadDeadline(pongWait)