Closed

Description
Hello,
I tried to use the (very cool) neo4j-driver within an electron app. http://electron.atom.io/ and faced this error:
Uncaught Error: Don't know how to send buffer: NodeBuffer( position=0 )60 60 b0 17 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00
See also: Stackoverflow
I found a possible solution for that:
If you change the order of the first two if blocks here:
L65 in connector.js
to:
var Channel = undefined;
if (_chNode2["default"].available) {
Channel = _chNode2["default"].channel;
}else if (_chWebsocket2["default"].available) {
Channel = _chWebsocket2["default"].channel;
}else {
throw (0, _error.newError)("Fatal: No compatible transport available. Need to run on a platform with the WebSocket API.");
}
It works perfectly.
If changing the order of the if-blocks doesn't interfere with anything else, I would suggest to change them in ordner to make the driver working in electron apps.
Metadata
Metadata
Assignees
Labels
No labels