Wireshark

Here are two annotated screenshots of a subscribe and a publish message.

Description Screenshot
You can see the message header, consisting of the message length (0x18 = 24) and opcode. The message content consists of one (length, value) pair for the client identifier and the channel name to subscribe to. wireshark subscribe message
The publish type has two (length, value) pairs - the client identifier and the channel name (both being 9 bytes in this example). The rest of the message then is the payload itself, the message published. The overall message length is 0x158 = 344 bytes. wireshark publish message

subscribe1.png - wireshark subscribe message (210 KB) Mark Schloesser, 09/08/2011 03:27 am

publish1.png - wireshark publish message (337 KB) Mark Schloesser, 09/08/2011 03:27 am