Documentation ¶
Overview ¶
Package client 默认的 websocket client 实现。
Index ¶
- Constants
- func Setup()
- type Client
- func (c *Client) Close()
- func (c *Client) Connect() error
- func (c *Client) Identify() error
- func (c *Client) Listening() error
- func (c *Client) New(session dto.Session) websocket.WebSocket
- func (c *Client) Resume() error
- func (c *Client) Session() *dto.Session
- func (c *Client) Write(message *dto.WSPayload) error
Constants ¶
View Source
const DefaultQueueSize = 10000
DefaultQueueSize 监听队列的缓冲长度
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.