package
0.0.0-20210302194054-83eb6fe5ac98
Repository: https://github.com/issue-one/offtime-rest-api.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewHub returns a new WsHub instance and the handler that accepts and upgrades connections to WebSockets.

# Variables

CloseEvent is an event emitted whenever a new client line closes.
ConnectedEvent is an event emitted whenever a new client joins.
ErrRoomNotFound is obivous.

# Structs

Client represents a single client connection.
ErrorData is the form Data from Message takes when replying erronous responses.
Hub is the what manages the websockets and provides room functionality.
Message struct codifes the format for sending messages.

# Type aliases

ListenerFn is the interface for event listeners.