
This part explains steps for providing multiply rooms to existent chat application. This type of chat is most difficult to implement. Extra attention should be applied to each detail. We need to decide how to divide users and messages by rooms. The first approach comes from relational theory - to each message and each session, we add a new field, which uniquely identifies a room. Or simply provide one-to-many relationships between the Rooms table and Messages table, Rooms table and Sessions table.
|