Example of websocket server and client. It is Memo for me. Usage $ python server.py $ python client.py Sending 'Hello, world.' Sent Receiving... Received 'The server says: 'Hello'. Connection was accepted.'