Skip to content
Jerome Leclanche edited this page Nov 27, 2015 · 5 revisions

Dependencies

Server:

HDT:

  • Own centrifugal implementation

Web client:

  • centrifuge.js
  • sha256.js
  • sockjs (?)
  • joust

Live replay session

  1. 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?)
  1. HDT user shares URL.
  2. Web user goes to URL, enters the channel
  3. 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.
  4. Listens for further messages
  5. Forwards everything to Joust

Notes

  • 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...
Clone this wiki locally