This commit is contained in:
2025-06-27 21:03:23 +08:00
parent 0f29dccec4
commit 54dc7ba173
5 changed files with 188 additions and 11 deletions

View File

@@ -66,7 +66,7 @@ func (s *WSServer) OnOpen(c gnet.Conn) ([]byte, gnet.Action) {
curHeader: nil,
cachedBuf: bytes.Buffer{},
},
param: make(map[string]interface{}),
param: make(map[string]string),
}
c.SetContext(ws)
s.unUpgradeConn.Store(c.RemoteAddr().String(), ws)