Documentation ¶
Index ¶
- func NewClient(clientID string, conn *websocket.Conn, manager types.Manager, ...) types.Client
- func NewDefaultClient(clientID string, conn *websocket.Conn, manager types.Manager) types.Client
- type ClientImpl
- func (c *ClientImpl) Connection() *websocket.Conn
- func (c *ClientImpl) Egress() chan types.Event
- func (c *ClientImpl) GetClientID() string
- func (c *ClientImpl) GetSession() string
- func (c *ClientImpl) Manager() types.Manager
- func (c *ClientImpl) PongHandler(pongMsg string) error
- func (c *ClientImpl) ReadMessages()
- func (c *ClientImpl) SetSession(room string)
- func (c *ClientImpl) WriteMessages()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientImpl ¶
type ClientImpl struct {
// contains filtered or unexported fields
}
func (*ClientImpl) Connection ¶
func (c *ClientImpl) Connection() *websocket.Conn
func (*ClientImpl) Egress ¶
func (c *ClientImpl) Egress() chan types.Event
func (*ClientImpl) GetClientID ¶
func (c *ClientImpl) GetClientID() string
func (*ClientImpl) GetSession ¶
func (c *ClientImpl) GetSession() string
func (*ClientImpl) Manager ¶
func (c *ClientImpl) Manager() types.Manager
func (*ClientImpl) PongHandler ¶
func (c *ClientImpl) PongHandler(pongMsg string) error
func (*ClientImpl) ReadMessages ¶
func (c *ClientImpl) ReadMessages()
func (*ClientImpl) SetSession ¶
func (c *ClientImpl) SetSession(room string)
func (*ClientImpl) WriteMessages ¶
func (c *ClientImpl) WriteMessages()
Click to show internal directories.
Click to hide internal directories.