https://github.com/matthewandretaylor/websocket-multiplayer-poll
Realtime polling app
https://github.com/matthewandretaylor/websocket-multiplayer-poll
flask flask-application javascript node-js python
Last synced: 3 months ago
JSON representation
Realtime polling app
- Host: GitHub
- URL: https://github.com/matthewandretaylor/websocket-multiplayer-poll
- Owner: MatthewAndreTaylor
- Created: 2024-01-23T00:30:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T16:55:52.000Z (about 2 years ago)
- Last Synced: 2025-12-25T21:00:00.655Z (6 months ago)
- Topics: flask, flask-application, javascript, node-js, python
- Language: HTML
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Socket multiplayer polling in Python
This Python server uses Flask and WebSocket to handle real-time communication for a multiplayer polling. Players can send updates, and the server broadcasts them to all connected clients.
I have also included a NodeJS version of the app
## Installation
1. Clone the repository:
```bash
git clone https://github.com/MatthewAndreTaylor/websocket-multiplayer-poll.git
cd websocket-multiplayer-poll/Flask
```
2. Create a virtual environment (optional but recommended):
```bash
python -m venv venv
source venv/bin/activate # On Windows, use "venv\Scripts\activate"
```
3. Install the required packages:
```bash
pip install -r requirements.txt
```
## Running the Server
Make sure your virtual environment is activated.
```bash
python app.py