A collaborative and engaging bible study experience
cd backend && go run .
Dockerfile to be created
GET wss:// Subscribe to websocket
ws.send
{
"Action": ("comment" | "highlight" | "select" | "scroll"),
"VerseID": 0,
"Message": "message"
}Subscribe Response
{
"Action": "subscribe",
"Msg": "user-id",
"Body": "ALL EVENT HISTORY"
}Scroll Positions (Ticks Every 200ms)
{
"Action":"positions",
"Body"
[
{
"UserID":"7dfae4f5-4c8d-4926-93d5-1d295b25f717",
"VerseID":30
}
]
}Event
In the case of "join" event, the user's name will be in the Message field
{
"UUID": "7dfae4f5-4c8d-4926-93d5-1d295b25f717",
"Action": ("join" | "leave" | "comment" | "highlight" | "select" | "scroll"),
"VerseID": 0,
"Message": "test"
}