Closed
Description
Hi,
I tried to install socket.io-client in a meteor app, it seems that browserify is responsible (see this issue), but I'm posting this here, because I believe other could have the same issue (and in case someone knows a better fix). Feel free to close the issue if you find it appropriate.
So my app crashes there, it's in the node-XMLHttpRequest (the repository doesn't accept issues), which is required by engine.io, which itself is required by socket.io-client.
So I decided to hack the browserify response object, like this:
import Response from 'meteor-node-stubs/node_modules/http-browserify/lib/response';
if(!Response.prototype.setEncoding) {
Response.prototype.setEncoding = function(encoding){
// do nothing
}
}
And so far it works.
Metadata
Metadata
Assignees
Labels
No labels