Closed4
Deno + プレーン JS で、いいとも!の 100人中 1人システムを作るぞ

完成イメージポンチ絵
- 運営がサーバ (これから作るアプリ) を立ち上げる
- 運営はコントロールページにアクセスする
- コントロールページで、回答開始ができる
- 画面は人数ディスプレイになっているので、モニタやプロジェクターで会場に見せる
- 回答者は回答ページにアクセスする
- QR コードなどでサーバへの URL を配る
- 運営が回答開始を実行すると、数秒間回答の受付が開始される
- 回答者のスマホ画面が切り替わり、回答ができる
- 数秒経つと回答受付が終了し、該当すると答えた人数が表示される
- 回答者のスマホ画面が待機中に戻る

全体シーケンス & エンドポイント検討

通信フォーマット
Moderator - Server
Value | Direction | Description |
---|---|---|
0x11 + uint8 (sec of response close) |
client --> server | Question start |
0x10 + uint16 (true response count) |
client <-- server | Question stop & result |
0x20 + uint16 (number of respondents) |
client <-- server | Respondents modified & the count |
Note: All uint16 values are little endian
Respondents - Server
Value | Direction | Description |
---|---|---|
0x30 |
client <-- server | Responding end |
0x31 |
client <-- server | Responding start |
0x40 |
client --> server | Set response false |
0x41 |
client --> server | Set response true |

web-intercom の開発が完了。
リポジトリを作成し、いよいよ開発スタート。
このスクラップは2025/03/06にクローズされました