*add node getter
This commit is contained in:
parent
a24a0414ce
commit
4862013f03
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue