Skip to content

A few examples that demonstrate the features of the Python Socket.IO server

License

Notifications You must be signed in to change notification settings

miguelgrinberg/socketio-examples

Repository files navigation

Socket.IO Examples

This repository contains a few examples that demonstrate the features of the Python Socket.IO server in combination with Flask.

How to Run

First create a virtual environment and import the requirements.

One of the demos uses the Google Maps API. For that demo to work you need to request a Google Maps API key from Google, as described here.

To start the server, run:

(venv) $ export GOOGLE_MAPS_KEY=<your-google-maps-key>
(venv) $ export FLASK_APP=socketio_examples.py
(venv) $ flask run

Finally, open http:https://localhost:5000 on your web browser to access the application.

Note: You can run the application without a Google Maps key. All the demos except "Where do you live?" will work just fine.

About

A few examples that demonstrate the features of the Python Socket.IO server

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published