-
-
Notifications
You must be signed in to change notification settings - Fork 22
WebSocket API
Zeyphros edited this page Jun 15, 2018
·
7 revisions
Along with the REST API, Oblecto also supports a websocket based api over Socket.IO to allow for realtime communication between Oblecto Clients and the backend. It is used for realtime episode and movie tracking and for real-time library updates on frontends. The channel refers to the Socket.IO channel based communication.
Channel: authenticate
Message: json { token: "JWT token retrieved from the REST API" }
Channel: playing
Message: js { episodeId: "id of episode | only needed if tracking episode", movieId: "id of the movie | only needed if tracking movie", progress: "percentage watched of video", time: "seconds since start of video" }