`solclientjs` v10.18.1 doesn't work with `sslPrivateKey` / `sslCertificate`

// see https://docs.solace.com/API-Developer-Online-Ref-Documentation/nodejs/solace.SessionProperties.html
this.#session = s.SolclientFactory.createSession({
  url: this.#url,
  vpnName: this.#vpn,
  authenticationScheme: s.AuthenticationScheme.CLIENT_CERTIFICATE,
  sslPrivateKey: this.#clientKey ?? "/solace-client-certificate/tls.key",
  sslCertificate: this.#clientCertificate ?? "/solace-client-certificate/tls.crt",
  connectRetries: -1,
  reconnectRetries: -1,
  reconnectRetryWaitInMsecs: 60_000
});
  • Works in version v10.18.0.
  • Documentation claims it still works like that.

Typescript error:

src/lib/solace.ts:66:7 - error TS2353: Object literal may only specify known properties, and 'sslPrivateKey' does not exist in type 'SessionProperties'.

66       sslPrivateKey: this.#clientKey ?? "/solace-client-certificate/tls.key",

Runtime error:

[inf] <solace> solclientjs:  transport.connectInternal threw: Cannot read properties of null (reading '2')

Hey there! Thanks for bringing this issue to our attention. The dev team has investigated and found the source of the error. For now, we suggest sticking with v10.18.0 while we resolve it.

Thanks for the fix. Works in v10.18.2 :+1: