tested with tornado, aiohttp, twisted websocket-servers py4web/utils/wsservers.py.txt

for gevent-websocket servers, pls, use _websocket test-example

original: https://www.includehelp.com/python/how-to-implement-a-websocket-server-using-tornado.aspx