Modify main module to support python3 This commit updates main module codes to support python 3 syntax. In addition, this commit marks strings that should be byte strings to byte literals to avoid mixed up usage. This also fixes the Stream.send_ping() method, since it can take both unicode string and byte strings, but does not convert unicode string to bytes when sending. Fix this by adding binary flag and adding encoding when binary flag is off. This commit also drops support for python versions <2.6. Change-Id: Ic2b89c3beb0d88343167b85ac5170de950c7e17b
The pywebsocket project aims to provide a WebSocket standalone server.
pywebsocket is intended for testing or experimental purposes.
Run this to read the general document:
$ pydoc mod_pywebsocket
Please see Wiki for more details.
To install this package to the system, run this:
$ python setup.py build $ sudo python setup.py install
To install this package as a normal user, run this instead:
$ python setup.py build $ python setup.py install --user
To use pywebsocket as standalone server, run this to read the document:
$ pydoc mod_pywebsocket.standalone