|
|
@ -45,10 +45,10 @@ type PongHandler func(string) error
|
|
|
|
type Client struct {
|
|
|
|
type Client struct {
|
|
|
|
w *sync.Mutex
|
|
|
|
w *sync.Mutex
|
|
|
|
conn LongConn
|
|
|
|
conn LongConn
|
|
|
|
platformID int
|
|
|
|
platformID int `json:"platformID"`
|
|
|
|
isCompress bool
|
|
|
|
isCompress bool `json:"isCompress"`
|
|
|
|
userID string
|
|
|
|
userID string `json:"userID"`
|
|
|
|
isBackground bool
|
|
|
|
isBackground bool `json:"isBackground"`
|
|
|
|
ctx *UserConnContext
|
|
|
|
ctx *UserConnContext
|
|
|
|
longConnServer LongConnServer
|
|
|
|
longConnServer LongConnServer
|
|
|
|
closed bool
|
|
|
|
closed bool
|
|
|
|