Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

socket disconnects continiously at xhr polling... #83

Closed
yapiskan opened this Issue · 4 comments

3 participants

@yapiskan

Hi, I am using the socket.io with websocket now. And it works nice with current settings. But the socket.io has some memory leaks with websocket and I want to change it to xhr polling. But when I tried to convert the settings to work just with xhr polling, the ios client starts to disconnects from time to time. I debugged and saw that I took a disconnect event at onData method. The code tries to decode the received data and I guess it does it wrong. The code tries to get the idx from result object and converts the "�97�5" this value to 0. and just disconnects. I guess there is a problem in server or client and dont know how to act.

You can see the watch data in screenshot.
Screen Shot 2013-02-19 at 12 38 08 PM

@yapiskan

I tried on both socket.io v.0.9.10 and v 0.9.13 both returns the same result. I guess on xhr calls socket.io returns the data by joining multiple events/messages/jsons which this version does not support.

@yapiskan

i guess also this is a related issue.

socketio/socket.io#816

@pkyeck
Owner

has this anything to do with this?
#65

@mennopruijssers

Any updates on this one? I have this problem too...

@pkyeck pkyeck closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.