This SDK covers following service:
- Room
- Timer
Api:
sendEvents
- send list of eventssend
- send list of events, action, state
const roomApi = new JokRoomApi({
apiUrl: "https://room.jok.io",
authToken: "[AUTH_TOKEN]",
});
const res = await room.sendEvents("tenant", "room1", [
{
data: {
hello: "there",
},
},
]);
Api:
setTimeout
clearTimeout
getTimeout
const timerApi = new JokTimerApi({
apiUrl: "https://timer.jok.io",
authToken: "[AUTH_TOKEN]",
});