-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node js compatibility #28
Comments
XMLHttpRequest is used only in long polling. Long polling is a fallback mechanism when websockets are not available. Given that you fully control your node environment, you can always include a websocket provider and consequently long polling won't ever be needed. Have you provided a websocket implementation as suggested? |
Actually XMLHttpRequest is also used in file uploads, so I suppose it needs to be polyfilled too. |
OK, I've updated the SDK to allow polyfilling of The |
Related: nodejs/node#16167 |
A full replacement is great, but a workaround would be sufficient too. Maybe an alternative way of downloading when createObjectURL is not available. Or maybe have createObjectURL return a data URL https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs |
The original issue with Let's close this issue as it is no longer clear what's exactly missing. Please file a new issue if something is still broken when running in Node environment. |
This paragraph causes the following error in nodejs:
Error: XMLHttpRequest is not defined (503)
I recommend using axios for this.
The text was updated successfully, but these errors were encountered: