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

Can a connection be closed manually? #2

Closed shortthefomo closed 2 years ago

shortthefomo commented 2 years ago

trying to manually disconnect,

the inner class has option to this.connection.close()

but this is not exposed at least not that I see.

WietseWind commented 2 years ago

It is,

simply call .close() on the connection object (not on the class itself): https://github.com/XRPL-Labs/xrpl-client#methods