WebSocket API Documentation

Join chat Room

Payload Schema:

Field Type Description
chatId string Chat Id to join chat

Leave chat Room

Payload Schema:

Field Type Description
chatId string Chat Id to join chat

Send Message to group or one to one conversation (Response Event: receiveMessage)

Payload Schema:

Field Type Description
message string Text message
mediaUrl string If user share any media file
audioForm Array Audio Wave form
mediaThumbnailUrl string Media thumbnail for video
mimeType string MIME type of message (ACCEPTED: TEXT, IMAGE, VIDEO, FILE, AUDIO, BOOKING, UNKNOWN) Default TEXT
chatId string Chat ID (Required)
uid string Unique id (Required)
booking object Booking request object
Field Type Description
bookingDate string Date for booking slot suggestion (DD-MM-YYYY)
bookingTime string Slot timing Example: 12:00 - 12:30
subject string Subject Id if request is send by Tutor
specialty string Specialty Id if request is send by Mentor

Decline Booking Request

Payload Schema:

Field Type Description
messageId string Message Id to Decline