socket.IO-objc icon indicating copy to clipboard operation
socket.IO-objc copied to clipboard

ERROR: data that has arrived wasn't valid

Open JannyFoo opened this issue 9 years ago • 5 comments

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

JannyFoo avatar Jul 31 '15 01:07 JannyFoo