From 4862013f03c472abb93e0848f7093af33162d589 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 3 Feb 2023 15:50:15 -0500 Subject: [PATCH] *add node getter --- src/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1cbf703..771eaff 100644 --- a/src/index.ts +++ b/src/index.ts @@ -19,7 +19,6 @@ import { } from "@lumeweb/libhyperproxy"; export default class HandshakeProxy extends Proxy { - private _node?: any; constructor({ swarm, listen = false }: { swarm: any; listen?: boolean }) { super({ swarm, @@ -52,6 +51,12 @@ export default class HandshakeProxy extends Proxy { const self = this; } + private _node?: any; + + get node(): any { + return this._node; + } + protected async _init() { this._node = new SPVNode({ config: false,