/StackOverflow-Question-17534033

An implementation of the web socket server mentioned in StackOverflow question 17534033. http://stackoverflow.com/questions/17534033

Primary LanguagePython

Example for StackOverflow question 17534033

http://stackoverflow.com/questions/17534033

Tested with Python 3.5.0 and Tornado 4.3

Setup environment:
$ virtualenv --python=python3.5 env
$ source env/bin/activate
$ pip install -r requirements.txt

Start the Producer:
$ ./producer.py --logging=debug
To test from command-line:
$ openssl s_client -connect localhost:4443 -tls1

Start the Consumer:
$ ./consumer.py --logging=debug
Open a browser and visit http://localhost:8080 and press the 'Connect' button.
Do the same in a second browser.
Both browser connections to consumer.py are fed by a single connection to
producer.py.