Real-time polling system with PieSocket
There is a tutorial for this repository published on PieSocket: Building A Polling System With WebSockets in PHP
Add PieSocket credentials in following files
partials/functions.phpjs/result.jsjs/voter.js
- Open
admin.phpin a tab - Open
voter.phpin single or multiple tabs - Push a question from
admin.php - The questions should appear on all voter tabs
- Click "View result" on admin tab to open the results page.
- Publish results from voter tabs and you should see results reflect on the results tab