📚 BookMyTeacher ● LIVE
Chat backend is running. Connect your Flutter app to:
https://communication.bookmyteacher.cloud
REST API Endpoints
POST
/api/auth/register
Register new user
POST
/api/auth/login
Login → JWT token
GET
/api/chat/conversations
List all chats
GET
/api/chat/messages/:convId
Get messages (paginated)
POST
/api/chat/create
Create / get direct chat
POST
/api/upload
Upload voice / PDF / DOCX
GET
/api/users
List users (admin)
Socket.IO Events
- user_online → join rooms, set online
- join → join a specific conversation room
- send_message → store + broadcast to conversation
- new_message ← received by conversation members
- typing_start / typing_stop ↔ real-time typing indicator
- mark_read → mark messages as read
- messages_read← broadcast read receipt
- user_status ← online / offline broadcast