pkyeck/socket.IO-objc — pull request #41 by taiyangc (2012-09-10 19:10:21+00:00)
Title: Make sendEvent conform to current socket.io protocol

As per https://github.com/LearnBoost/socket.io-spec/blob/master/README.md,

------------------------------------------------------------------------------------------------
(5) Event

'5:' [message id ('+')] ':' [message endpoint] ':' [json encoded event]
An event is like a json message, but has mandatory name and args fields. name is a string and args an array.
------------------------------------------------------------------------------------------------

Right now 'args' is not an array (rather a dict), thus not working correctly when connecting to behaving socket.io servers.

Provided is a simple patch that addresses this issue.