mrjoes / tornadio2

Python socket.io server implementation on top of Tornado framework
Other
523 stars 118 forks source link

TornadIO2 should allow the user to override message type (Message of Json) #50

Closed kiddouk closed 12 years ago

kiddouk commented 12 years ago

TornadIO2 now chooses the type of message to be sent according to the type of the data. string generates simple messages (type 3) while dict and arrays generate JSON messages (type 4). This is generally true except when the string already represent the JSON encoded version of the object.

TornadIO2 should allow the user to override this behavior.

mrjoes commented 12 years ago

Patches are always welcome :-)