HackingGibsons/clubot — pull request #18 by sshirokov (2012-01-07 01:21:57+00:00)
Title: Multipart messages for event broadcast

The messages sent over the `ZMQ_PUB` socket are now sent as multipart messages with the first component containing only the subscription information and the second message carrying the message body.

This lets us skip the splitting step of message retrieval after matching the subscription and just read the second message body as JSON.

The documentation should be updated.

At the time of writing I have not actually executed this code, so let me know how it works. @sbryant is adapting his scaffold for this model to give it a shot.