socket.IO-objc
socket.IO-objc copied to clipboard
ERROR: data that has arrived wasn't valid
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