-
Notifications
You must be signed in to change notification settings - Fork 14
Live replays
Jerome Leclanche edited this page Nov 27, 2015
·
5 revisions
Server:
- Centrifugo (docs)
HDT:
- Own centrifugal implementation
Web client:
- centrifuge.js
- sha256.js
- sockjs (?)
- joust
- HDT connects to Centrifugo and asks to create a new channel. Centrifugo replies with the created channel. (How to do this?)
- Channel can be made public (as in, browsable from the user's page), or accessible only with the URL (shared secret?)
- HDT user shares URL.
- Web user goes to URL, enters the channel
- Gets the beginning of the match up until now from somewhere...
- Is the
history
method enough to do this? Maybe there's too many messages. - It would appear so.history_lifetime
needs to be configured. - Listens for further messages
- Forwards everything to Joust
- Make sure the data can't be harmful to the clients as it will essentially not be changed from HDT to web client
- (Later)
presence
can be used to tell how many concurrent live viewers are there. Once we have enough...