Skip to content

Fixing xhr(-polling) under node.js#420

Closed
fourplusone wants to merge 2 commits intosocketio:masterfrom
fourplusone:patch-1
Closed

Fixing xhr(-polling) under node.js#420
fourplusone wants to merge 2 commits intosocketio:masterfrom
fourplusone:patch-1

Conversation

@fourplusone
Copy link

on nodejs global.location.protocol is not present, so XHR.check always fails.

@rauchg
Copy link
Contributor

rauchg commented Apr 21, 2012

haha so random that the try{}catch{} makes it not fail… great catch

Shouldn't we do a

// if node
return true;
// end node

at the top instead ? Since we don't really need cross-domain checks in node

@fourplusone
Copy link
Author

Would be ok too

@rauchg
Copy link
Contributor

rauchg commented Apr 21, 2012

Yeah let's do it

@fourplusone
Copy link
Author

Anything that still needs to be done before merging?

@kafouros
Copy link

kafouros commented May 2, 2012

Hi there. Are you planning to release this fix soon? Thanks in advance.

@thatguydan
Copy link

+1 please, should add that heroku required xhr-polling transport only, which means without the fix the library can't be used to talk to heroku hosted socket.io

@askpete
Copy link

askpete commented Jun 12, 2012

it would be a big help to get this released so we can use it with npm

@schappim
Copy link

+1

@mfrobben
Copy link

Bump - theres 12 people on an associated error thread waiting for fixes to the eventual crash this bug can cause in node / heroku.

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.

7 participants