Skip to content

handshake: XHR status 0 is not handled#486

Closed
szymonc wants to merge 1 commit intosocketio:masterfrom
szymonc:patch-1
Closed

handshake: XHR status 0 is not handled#486
szymonc wants to merge 1 commit intosocketio:masterfrom
szymonc:patch-1

Conversation

@szymonc
Copy link

@szymonc szymonc commented Oct 31, 2012

The handshake method do not handle the situation when xhr status is equal 0.
This happens when the provided url dont give any response. When it happens also the error message is empty.
I would like to try to reconnect if the socket option 'reconnect' was set to true.

Changed methods:
Socket.prototype.handshake - handle case when xhr status 0
Socket.prototype.onError - handle new error when xhr status == 0

The handshake method do not handle the situation when xhr status is equal 0.
This happens when the provided url dont give any response. When it happens also the error message is empty.
I would like to try to reconnect if the socket option 'reconnect' was set to true.

Changed methods:
Socket.prototype.handshake - handle case when xhr status 0
Socket.prototype.onError - handle new error when xhr status == 0
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant