-
Notifications
You must be signed in to change notification settings - Fork 7
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
Various issues #5
Comments
The module does have an |
The version installed via npm (1.0.0-BETA0) does not have an adapt() function. Will try with the version from the repo. Thanks. |
Install latest version on tag |
OK, got 1.0.0-BETA3 with adapt() function. I'm still getting |
Install |
No problem. Appreciate the hard work on the library. The beta of cometd fixed the first problem (XMLHttpRequest is not defined), but it looks like the adapter does not support https. Still getting |
Quick fix to make it work in my specific use case. require('https'), and add Content-Length header: |
Can you please detail how you get the |
I think I understand the The suggestion you made about the |
@ccoenraets I filed #6 to isolate the |
A possible suggestion for this I can separate my comments into Agent for issue #6, and another for Cookies. Request modules optional options:
|
@glennschler, the goal of this library is not to be a full rewrite of the browser CometD client, but just perform the necessary adaptations to make it work in a NodeJS environment. It basically has to just "fake" From fixing #6, passing an Cookies have been solved in #4. |
require('cometd-nodejs-client').adapt()
, but the module doesn't have an adapt() function.require('cometd-nodejs-client')
, but then ran into an 'XMLHttpRequest is not defined' errorglobal.XMLHttpRequest = window.XMLHttpRequest;
in my module, but then ran in 'https not supported' errorvar http = require('http');
withvar http = require('https');
in cometd-nodejs-client.js but now running in 'Length Required' error.Am I using this right or is there another way to use this module?
Thanks
The text was updated successfully, but these errors were encountered: