Documentation
¶
Overview ¶
Package websocket
Package client ¶
Package websocket
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
GroupName string
Group GroupAPI
// The websocket connection.
Conn *websocket.Conn
// Buffered channel of outbound messages.
Send chan []byte
// contains filtered or unexported fields
}
Client is a middleman between the websocket connection and the group.
func (*Client) SetCloseCallback ¶
func (c *Client) SetCloseCallback(f func(data interface{}))
func (*Client) SetDealMsg ¶
type GroupExtData ¶
Click to show internal directories.
Click to hide internal directories.