Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

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

Open
JannyFoo opened this issue Jul 31, 2015 · 5 comments
Open

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

JannyFoo opened this issue Jul 31, 2015 · 5 comments

Comments

@JannyFoo
Copy link

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
Copy link
Owner

pkyeck commented Jul 31, 2015

which socket.io version are you using?

@JannyFoo
Copy link
Author

socket.io 0.9.6 library

@JannyFoo
Copy link
Author

JannyFoo commented Aug 6, 2015

Any ideas?

Thanks,
John

@pkyeck
Copy link
Owner

pkyeck commented Aug 6, 2015

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
Copy link
Author

JannyFoo commented Aug 6, 2015

ok thanks,

J

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants