Help and docs
Sign in

R28 engine: deck.share keeps a script's state in step across windows and phones

Browse files
grindlemire 5h 4 files +170 ~21
Landed bygrindlemireas ab8c5db4 · with the review below it See in history

A talk script's own state (a viewer over the slide, a trail of jumps) had
no way to reach phones following the talk: scripts could only open a
channel of their own, which stays in one browser. deck.share(key, value,
{slide}) sends it over the presenter channel and, while live, in the post
to the server; deck:shared tells the other views. Slide-scoped values
clear on a slide change. A phone takes the speaker's values as they change
while following, and all of them on Back to the live slide or when the
talk goes live again.