Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Listen(ctx context.Context) error
- func (c *Client) OnClose(socket *gws.Conn, err error)
- func (c *Client) OnMessage(socket *gws.Conn, wsmsg *gws.Message)
- func (c *Client) OnOpen(socket *gws.Conn)
- func (c *Client) OnPing(socket *gws.Conn, payload []byte)
- func (c *Client) OnPong(socket *gws.Conn, payload []byte)
- type Config
- type HostPost
- type WebSocket
Constants ¶
View Source
const ( PingInterval = 5 * time.Second PingWait = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type HostPost ¶
func (*HostPost) HttpScheme ¶
Click to show internal directories.
Click to hide internal directories.