Skip to content

MarekBleschke/websockets-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Python websockets example

Example of simple websocket game server app using python's websockets library and JavaScript's Phaser "game" as client.

Handles sending notifications about players positions to all clients. Also handles cases of connecting and disconnecting clients.

Installation and running

# Install dependencies - python 3.6 required.
pip install -r requirements.txt

# Run websockets server.
python src/game_server.py

# Run web server in new terminal session.
python -m http.server

Open "game" client in multiple browser tabs: http://127.0.0.1:8000/src/client.html.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published