A simple socket server that accepts HTTP requests and upgrades a connection to WebSockets.
The server accepts an HTTP GET connection. If the HTTP requests the enpoint '/ws', the server will upgrade the connection to WebSocket.
- Python 2.7
$ git clone https://github.com/renanrv/simple-socket-server.git
$ cd simple-socket-server
$ python server.py
python -m unittest -v test