lifo / cramp

Real-time web application framework in Ruby
http://cramp.in
MIT License
1.5k stars 121 forks source link

Fix encoding problems #50

Closed KernelMadness closed 10 years ago

KernelMadness commented 12 years ago

Faye 0.3.0 seems to have encoding problems when receiving websocket frames. Bump to 0.4.5 fixes this.

whoward commented 12 years ago

I second this one - really should get pulled in

All data received with the on_data event is improperly encoded:

I'm using KernelMadness's branch until then

Before: received data: "\x81\x9FgI=\xE3\x1Ck\\\x80\x13 R\x8DEs\x1F\x89\b S\xC1KkH\x90\x02;\x1F\xD9E>T\x8F\vk@"

After: received data: "{\"action\":\"join\",\"user\":\"will\"}"

using Google Chrome 21