fix
This commit is contained in:
parent
2971e34325
commit
f15f8a32be
@ -76,19 +76,19 @@ var (
|
|||||||
|
|
||||||
// 每个连接的连接基本属性
|
// 每个连接的连接基本属性
|
||||||
type wsConnectItem struct {
|
type wsConnectItem struct {
|
||||||
|
wid string //ws连接唯一标识(基本属性)
|
||||||
|
userId int64 //用户id(基本属性)
|
||||||
|
guestId int64 //游客id(基本属性)
|
||||||
conn *websocket.Conn //websocket的连接(基本属性)
|
conn *websocket.Conn //websocket的连接(基本属性)
|
||||||
connExpireTime int64 //websocket过期时间(跟随连接时候的token过期时间)
|
connExpireTime int64 //websocket过期时间(跟随连接时候的token过期时间)
|
||||||
userAgent string //用户代理头信息(基本属性,用于重连标识验证因素之一)
|
userAgent string //用户代理头信息(基本属性,用于重连标识验证因素之一)
|
||||||
logic *DataTransferLogic //logic(基本属性,用于获取上下文,配置或者操作数据库)
|
logic *DataTransferLogic //logic(基本属性,用于获取上下文,配置或者操作数据库)
|
||||||
closeChan chan struct{} //ws连接关闭chan(基本属性)
|
closeChan chan struct{} //ws连接关闭chan(基本属性)
|
||||||
isClose bool //是否已经关闭(基本属性)
|
isClose bool //是否已经关闭(基本属性)
|
||||||
wid string //ws连接唯一标识(基本属性)
|
|
||||||
inChan chan []byte //接受消息缓冲队列(基本属性)
|
inChan chan []byte //接受消息缓冲队列(基本属性)
|
||||||
outChan chan []byte //要发送回客户端的消息缓冲队列(基本属性)
|
outChan chan []byte //要发送回客户端的消息缓冲队列(基本属性)
|
||||||
mutex sync.Mutex //互斥锁(基本属性)
|
mutex sync.Mutex //互斥锁(基本属性)
|
||||||
debug *auth.Debug //是否开启debug
|
debug *auth.Debug //是否开启debug
|
||||||
userId int64 //用户id(基本属性)
|
|
||||||
guestId int64 //游客id(基本属性)
|
|
||||||
extendRenderProperty extendRenderProperty //扩展云渲染属性(扩展属性)
|
extendRenderProperty extendRenderProperty //扩展云渲染属性(扩展属性)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user