Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matthewandretaylor/websocket-multiplayer-poll
https://github.com/matthewandretaylor/websocket-multiplayer-poll
Last synced: about 24 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/matthewandretaylor/websocket-multiplayer-poll
- Owner: MatthewAndreTaylor
- Created: 2024-01-23T00:30:53.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-24T16:55:52.000Z (7 months ago)
- Last Synced: 2024-04-24T19:20:34.783Z (7 months ago)
- Language: HTML
- 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