7 #include "server/connection/isubscriber.h" 8 #include "protocol/protocol.h" 23 virtual void join(subscriber_ptr subcriber) = 0;
30 virtual void leave(subscriber_ptr subscriber) = 0;
36 virtual void notification(text_response_ptr subscriber) = 0;
49 virtual ~IRoom() =
default;
52 using iroom_ptr = std::shared_ptr<IRoom>;
virtual void notification(text_response_ptr subscriber)=0
Notify all room's subscribers about new message.
virtual void leave(subscriber_ptr subscriber)=0
Leave a user from channel.
virtual identifier_t get_room_id() const =0
Get the room id object.
virtual ~IRoom()=default
Default virtual destructor.
Room interface.
Definition: iroom.h:14
virtual void join(subscriber_ptr subcriber)=0
Join a user to channel.