*add node getter

This commit is contained in:
Derrick Hammer 2023-02-03 15:50:15 -05:00
parent a24a0414ce
commit 4862013f03
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 1 deletions

View File

@ -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,