Poll

Server functions from an island: the SSR shows the real tally; votes round-trip through /api/pollVote.

  • SSR seeds the counters via a direct ctx.serverFn-style read
  • serverFnPost fires the vote; the reply carries the full tally
  • registerResponseHandler re-binds every counter in one pass
  • a pollResults resync on hydrate catches votes from other tabs

Guide: Server functions

3
5
4
2