Skip to content
This repository was archived by the owner on Oct 23, 2019. It is now read-only.

Latest commit

 

History

History
45 lines (29 loc) · 977 Bytes

File metadata and controls

45 lines (29 loc) · 977 Bytes

socket.io example

socket.io client/server example with Bocadillo, python-socketio and socket.io client.

This is a reproduction of the the socket.io chat tutorial, but using:

  • python-socketio instead of socket.io as a server-side socket.io backend.
  • Bocadillo instead of Express as a web application server.

Install

Requires Python 3.6+.

  • Python dependencies:
pip install bocadillo python-socketio
# OR
pipenv install --pre
  • Node.js dependencies:
npm install

Quick start

  1. Fire off the server:
uvicorn app:app
  1. Open up a web browser at http://localhost:8000, and start chatting!

License

MIT