I am doing a chat with these techonologies: NodeJS, PHP (for someother things), Express.JS
The chat will have private rooms. A private room is a private conversation, such as on Facebook chat. Let’s say that a room is: my.page/index.php?room=123
1) How can I get the id of the room? (Which in this case is 123)
2) How can I manage all the messages sent on room = 123 to be kept on just that room?
Any other recommendation will be welcome!
1)
$_GET['room']2) Your database where you store the messages would have a
roomcolumn.