What you are trying to accomplish should be totally doable in Python too. However, the Python-side of Tundra is currently somewhat lacking, see https://groups.google.com/forum/?fromgroups#!topic/realxtend/jNHCpZXrfioSo, either continue with Python and enhance the C++-Python wrapper a bit, or implement the WebSocket part as C++ Tundra module, which you can access from the QtScript/JavaScript, or just fully in QtScript/JavaScript. And of course pure C++ implementation is possible too.
-- http://groups.google.com/group/realxtend http://www.realxtend.org
