Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 538 Bytes

README.md

File metadata and controls

35 lines (29 loc) · 538 Bytes

Listener protocol

~> inital_state: {state: PresentationState, poll: Poll?, pollVote: int? }
~> presentation_state: PresentationState
~> poll: Poll | false

<~ init: {clientId: String, presentationId: String}
<~ vote_up
<~ vote_down
<~ question: String
<~ poll_vote: int

PresentationState: 'not_started' | 'active' | 'ended'

Poll: {
  id: String,
  title: String,
  options: [
    {
      label: String,
      color: '#rrggbb'
    }
  ]
}

Usage

$ npm install
$ bower install
$ node server.js
$ brunch w -s