This is the WebSocket API specification of Session Service.
Accepts one of the following messages:
User Token Command
{
"token": "string"
}
Create Session Command
{
"videoUrl": "string"
}
Join Session Command
{
"sessionName": "string"
}
Leave Session Command
Send Chat Text Message Command
{
"message": "string"
}
Play Video Command
{
"timestamp": 0
}
Stop Video Command
{
"timestamp": 0
}
Accepts one of the following messages:
Send Chat Text Message Reaction
Text Message
{
"content": "string",
"sender": {}
}
Send Chat Notification Message Reaction
Notification Message
{
"content": 0,
"sender": {}
}
Get Video State Reaction
Synchronize Video Reaction
Video State
{
"state": "Paused",
"timestamp": 0
}
User Token Command
Create Session Command
Join Session Command
Leave Session Command
Send Chat Text Message Command
Play Video Command
Stop Video Command
Send Chat Text Message Reaction
Text Message
Send Chat Notification Message Reaction
Notification Message
Get Video State Reaction
Synchronize Video Reaction
Video State
Text Message
Notification Message
Video State
User Token Response
Create Session Response
Join Session Response
Leave Session Response
Send Message Response
Play Video Response
Stop Video Reponse