Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Socket *websocket.Conn Send chan []byte OutClose chan bool Lock sync.Mutex Status bool // contains filtered or unexported fields }
websocket 链接对象
type Message ¶
type Message struct { Code int `json:"code,omitempty"` Message string `json:"message,omitempty"` Content interface{} `json:"data,omitempty"` }
消息结构提
type SendMessage ¶
Click to show internal directories.
Click to hide internal directories.