class Murcure::Server::State
- Murcure::Server::State
- Reference
- Object
Overview
This class is used to store state of server. Instance provide methods to acces users, rooms and information from config.
Defined in:
murcure/server/state.crConstructors
Instance Method Summary
- #add_client(client : Client::Entity) : Void
- #add_to_room(client : Client::Entity, room_id : UInt32)
- #channels_state : Array(Murcure::Protos::ChannelState)
- #default_channel_id
- #max_bandwidth
- #max_users
- #remove_client(client : Client::Entity) : Void
- #remove_from_room(client : Client::Entity, room_id : Nil)
- #remove_from_room(client : Client::Entity, room_id : UInt32)
- #select_rooms(ids : Array(UInt32)) : Array(Room::Entity)
- #user_count
- #users(&)
- #users_state : Array(Murcure::Protos::UserState)
- #welcome_text