pkyeck / socket.IO-objc

socket.io v0.7.2 — 0.9.x for iOS and OS X
MIT License
1.97k stars 439 forks source link

ERROR: data that has arrived wasn't valid #223

Open JannyFoo opened 9 years ago

JannyFoo commented 9 years ago

Hi,

If I connect to the socket server via a webpage with JS, everything works as expected. Correct data, handling the whole deal.

As soon as I attempt to do the same via socket.IO-objc i get bad data in debug log, and cannot handle data.

Maybe something to do with sure how to handle line breaks in packet data? I try looking for "\n", "\r", "\r\n" but nothing seems to work. In addition I always get "ERROR: data that has arrived wasn't valid".

My JS script works successfully looking for "\n".

Thanks, John

pkyeck commented 9 years ago

which socket.io version are you using?

JannyFoo commented 9 years ago

socket.io 0.9.6 library

JannyFoo commented 9 years ago

Any ideas?

Thanks, John

pkyeck commented 9 years ago

Thought that you were maybe using a newer version that isn't compatible with this library ... but because that isn't the case, I can't tell :(

JannyFoo commented 9 years ago

ok thanks,

J