Files
deb-python-autobahn/examples/twisted/websocket/wxpython
2015-02-19 19:22:23 +01:00
..
2014-07-01 23:31:41 +02:00
2015-02-19 19:22:23 +01:00
2014-07-01 23:31:41 +02:00
2014-07-01 23:31:41 +02:00
2015-02-19 19:22:23 +01:00

Using wxPython with Autobahn

This example shows how to use WebSocket communication within a wxPython based application.

The demo creates a small Window that you can move around, and while doing so, the demo will send out WebSocket messages with the new Window position.

The demo will also receive WebSocket messages, count the number of received messages and display that number in the Window.

The server side of the demo runs a simple WebSocket broadcast server that will simply broadcast any WebSocket message it receives to all currently connected clients.

For fun, the demo also includes a HTML client which you can use to listen for all broadcasted events.

How to run

Start the server

python server.py

Start the wxPython client

python client.py

Start the Web client by opening client.html in your browser.