XRPL-Labs / xrpl-client

Connect to the XRP Ledger using WebSockets
https://www.npmjs.com/package/xrpl-client
MIT License
12 stars 8 forks source link

Unable to destroy the connection Cannot read property 'removeEventListener' of undefined #15

Closed N3TC4T closed 10 months ago

N3TC4T commented 10 months ago

Calling destroy method while in connecting state, result in above error

  if (this.connection) {
       this.connection.destroy();
  }
WietseWind commented 10 months ago

Fixed in 2.2.0