package
0.1.0
Repository: https://github.com/cis3296f22/ottomh.git
Documentation: pkg.go.dev

# Functions

Turn Map of words to number of words.
Constructs a new `WebSocket` instance over the HTTP request represented by `w`, `r`, and `responseHeader`.
Initializes an empty userWordsMap.

# Variables

Returned by multiple WebSocket methods if the WebSocket is closed.
Returned by ValidateUsername in the event that a user already exists.
Returned by WebSocket.ReadMessage if there are no messages in the queue.

# Structs

A "Lobby" represents a game that is currently open or running.
Represents a map between a username and score for that user.
A WebSocket and its username is very closely related, so we store them in a collection together in a transparent manner.
The WebSocket wrapper provides channel-based messag reading from the WebSocket, and a convenient Ping / Pong.
Represents an answer submission.
The `World` is a collection of all active lobbies, and handles the process of routing.
This struct is used to hold data recieved over web sockets.