R28 engine: deck.share keeps a script's state in step across windows and phones
Browse files Landed bygrindlemireas ab8c5db4 · with the review below it See in history
You are on patch 1. Patch 2 was pushed 5h ago Go to patch 2
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.