package
1.3.2
Repository: https://github.com/onfe/picto.git
Documentation: pkg.go.dev

# Functions

LoadWordsList Loads a words list from a newline separated text file.
NewRoomManager creates a new room manager.

# Constants

ChatHistoryLen = Number of messages kept by server per room.
1 week.
ClientMessageTimeout = maximum amount of time a client may be in a room without sending any messages before being disconnected.
ClientPingPeriod is the period between pings.
ClientSendTimeout is the time allotted for a message to be sent.
ClientTimeout = Max interval allotted between pings and pongs.
DefaultCloseTime = the default amount of time allowed between announcing a room is being closed to closing the room.
DefaultRoomSize = Default size of default room.
MaxClientNameLength = the max length of a client name.
MaxClientsPerRoom = max number of clients in a single room.
MaxMessages = the maximum number of messages to a ModeratedRoom before they overwrite themselves.
One byte per pixel in a 192*64 pixel canvas + a bit extra for the wrapper and other data.
MaxRoomNameLength = the max length of a room name.
MaxRooms = maximum amount of rooms the server may have at any one time.
MaxVisibleMessages = the maximum number of visible messages in a ModeratedRoom before they get discarded.
MinMessageInterval = Minimum interval between messages sent by a client to be acknowledged.
RoomGracePeriod = how long a room may be empty before being closed.
RoomTimeout = maximum amount of time a room may stay open without any activity before being automatically closed.

# Structs

RoomManager is a struct that keeps track of all the picto rooms.