ws

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: LGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrRoomWasNotFound send when request room was not be found
	ErrRoomWasNotFound = errors.New("Requested room was not found")

	// ErrInvalidUserID send when invalid user ID was received
	ErrInvalidUserID = errors.New("Cannot find user with given user_uuid")

	// ErrBannedInARoom send when user banned in a room
	ErrBannedInARoom = errors.New("You're banned in this room")
)
View Source
var Register chan *websocket.Conn

Register a new connection in a room cache

Functions

func HandleWsConnection

func HandleWsConnection(db *db.Database)

HandleWsConnection handle new websocker connection

func NewRoomHub

func NewRoomHub(id string, db *db.Database) *hub

Types

This section is empty.

Jump to

Keyboard shortcuts

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