client

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(clientID string, conn *websocket.Conn, manager types.Manager, pongWait, pongInterval time.Duration) types.Client

func NewDefaultClient

func NewDefaultClient(clientID string, conn *websocket.Conn, manager types.Manager) types.Client

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL