Required Functionalities for Text Chat
4 types of users will join the text chat.
1. Guest Users/ Non-Registered Users
2. Client Users/Registered Users
3. Expert Users
4. Admin Users
When any user comes in expert’ room it will be visible for an expert in some particular colour. As it is shown in the HTML file. Similarly, all the users will be visible on the user end too. Their text will also be in different colours. Admin appearance will be visible to expert only.
There will be two types of text chat area. Public/ Free and Private /Paid. In Public Text chat area multiple users can join expert’s room and can write and see other’ chat. They can see only the chat which is happening after their coming. The expert will have control to kick or ban any client from his room. In this case that user can’t enter his room for a specific time. control for expert being online or away ( For this functionality Buttons: Free Chat Area – Member Area are available HTML file )
If a client wants not to show his conversation to others he will have to buy credits and by clicking “Private Chat” button (as in HTML page) will take the expert in the private area where only expert and this client can do text chat and see each other chat. After joining a private chat, the deduction will start from client balance according to expert /mint price on the second basis. On both sides, they can see what the deduction is and what is being earned. Every expert will have a different /mint price so all deduction should be accordingly.
An admin can join the public chat and can text to expert his text will be shown in red colour which is visible to expert only. Similarly in private chat room although other users can not join private an admin can join the private chat room and see the text of both parties and on need, he can write text which will be shown the only expert.
The private chat will be saved in DB. (table has been created for saving this chat).