Skip to content

octoberskyjs-lab/repoll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

repoll

simple poll server for hack

Demo

  • open master page
  • open client page in other tabs or device
  • select button on client page and enjoy changes on master page!!

socket.io events

            1.master_ready
              (char info)         2.master_ready
 +-----------+          +----------+          +---------+
 | reveal.js | -------> |  repoll  | -------> |         |
 |  (master) |          |  server  |          | clients |
 |           | <------- | (heroku) | <------- |         |
 +-----------+          +----------+          +---------+
           4.client_vote           3.client_vote

master_ready event data

send pie chart data to server. server will automatically fire to connected clients with received data.

[
  {
    value : 0,
    color : "#F38630",
    desc : "java"
  },
  {
    value : 0,
    color : "#E0E4CC",
    desc : "javascript"
  },
  {
    value : 0,
    color : "#69D2E7",
    desc : "ruby"
  }
]

client_vote event data

send selected index to server

{
    selected:index
}

About

simple poll server for hack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published