diff --git a/package.json b/package.json index 7bb47461..e48fe0d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fluence", - "version": "0.5.2", + "version": "0.5.3", "description": "the browser js-libp2p client for the Fluence network", "main": "./dist/fluence.js", "typings": "./dist/fluence.d.ts", diff --git a/src/fluence_client.ts b/src/fluence_client.ts index 45b6eded..745b6c35 100644 --- a/src/fluence_client.ts +++ b/src/fluence_client.ts @@ -224,6 +224,10 @@ export class FluenceClient { } } + async disconnect(): Promise { + return this.connection.disconnect(); + } + /** * Establish a connection to the node. If the connection is already established, disconnect and reregister all services in a new connection. *