Closed
Description
Hi,
I tried to connect the neo4j from my application it worked well while an application running in http protocol, but while changing the protocol to https. I am getting the following error.
neo4j-web.js:29960 WebSocket connection to 'ws://neo4j.host.io:7687/' failed: Connection closed before receiving a handshake response
I know we need to connect through wss while in https. But don't know how to configure the driver to access https
how to pass opts.encrypted= true, can't it switch automatically passed on the application protocol. something like //expample.com
//Allow boolean for backwards compatibility
if (opts.encrypted === true || opts.encrypted === _util.ENCRYPTION_ON) {
if (!opts.trust || opts.trust === "TRUST_CUSTOM_CA_SIGNED_CERTIFICATES") {
scheme = "wss";
} else {
this._error = (0, _error.newError)("The browser version of this driver only supports one trust " + "strategy, 'TRUST_CUSTOM_CA_SIGNED_CERTIFICATES'. " + opts.trust + " is not supported. Please " + "either use TRUST_CUSTOM_CA_SIGNED_CERTIFICATES or disable encryption by setting " + "`encrypted:\"" + _util.ENCRYPTION_OFF + "\"` in the driver configuration.");
return;
}
}
this._url = scheme + "://" + opts.host + ":" + opts.port;
Metadata
Metadata
Assignees
Labels
No labels