Automatically generate chatroom when onclick button

60 Views Asked by At

I wanna make a chat app that when clients click on the button, they will connect and chat with the admin. Each admin has a button only and he can chat with many clients. Each client can chat with many admin too. 1 chatroom has only 2 users (admin+client). My solution is when clients click the button, it will generate a chatroom and add user_id of admin and client into its. But now I'm struggling to find way to automatically generate a chatroom with random id or name. Hope you guys can help me <3

0

There are 0 best solutions below