I get a 'connection not open on send()' error immediately after connecting to a Websocket for a Kaleido node. I am trying to use the WebsocketProvider from web3js version 1.0.0-beta.34.
My code for the connection looks like this, where username, password and wssUrl are local variables with the information about the Kaleido node.
const web3 = new Web3(new Web3.providers.WebsocketProvider(`wss://${username}:${password}@${wssUrl}`))
I've tried the suggested steps listed in this Github issue -- trying to reconnect if the connection is lost, but the error still persists. I think it may be a Kaleido issue as I'm able to use the WebsocketProvider for a local Ganache account.
It would be helpful to be able to use the Websocket connection for a Kaleido node, so I can use web3js version 1.0. The HTTP connection works just fine, but in web3js 1.0 listening for events with the HttpProvider is deprecated, thus forcing you to use the WebsocketProvider. Thanks!