Category: websockets

Having fun with WebSocket and Canvas

Recently, I was advised that WebFaction had added support for WebSocket in their custom applications by enabling the according nginx module in their frontend. Obviously, I had to try it out with my own websocket library: ws4py. Setting up your WebFaction application Well, as usual with WebFaction, setting up the application is dead simple. Only […]


ws4py – WebSocket client and server library for Python

Recently I released ws4py, a package that provides client and server WebSocket support for Python 2.6 and 2.7. Let’s first have a quick overview of what ws4py offers for now: WebSocket specification draft-10 of the current specification. A threaded client. This gives a simple client that doesn’t require an external dependency. A Tornado client. This […]


WebSocket for CherryPy 3.2

Just a quick note about the first draft of support for WebSocket in CherryPy. You can find the code here. Note that this is still work in progress but does work against Chrome and the pywebsocket echo client. It supports draft-76 of the specification only and I’m waiting for the working-group to settle a bit […]


A quick chat WebSockets/AMQP client

In my previous article I described how to plug WebSockets into AMQP using Tornado and pika. As a follow-up, I’ll show you how this can be used to write the simplest chat client. First we create a web handler for Tornado that will return a web page containing the Javascript code that will connect and […]


Plugging AMQP and WebSockets

In my last article, I discussed the way the WSPBus could help your management of Python processes. This time, I’ll show how the bus can help plugging in heterogeneous frameworks and manage them properly too. The following example will plug the WebSockets and AMQP together in order to channel data in and out of a […]