Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrConnectionLost = errors.New("connection lost") ErrCanNotCreateTheRoom = errors.New("cannot create the room") ErrCanNotJoinTheRoom = errors.New("cannot join the room") ErrNameIsAlreadyInUse = errors.New("name is already in use") ErrNotAValidName = errors.New("not a valid name") ErrNotAValidKey = errors.New("not a valid key") )
Functions ¶
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) DeleteRoom ¶
func (*Registry) NewClient ¶
func (reg *Registry) NewClient(conn WebscoketConn) (retErr error)
type WebscoketConn ¶
type WebscoketConn interface { Close() error NextWriter(messageType int) (io.WriteCloser, error) SetPongHandler(h func(appData string) error) ReadMessage() (messageType int, p []byte, err error) SetReadDeadline(t time.Time) error SetReadLimit(limit int64) SetWriteDeadline(t time.Time) error WriteMessage(messageType int, data []byte) error }
Click to show internal directories.
Click to hide internal directories.