*add node getter
This commit is contained in:
parent
a24a0414ce
commit
4862013f03
|
@ -19,7 +19,6 @@ import {
|
||||||
} from "@lumeweb/libhyperproxy";
|
} from "@lumeweb/libhyperproxy";
|
||||||
|
|
||||||
export default class HandshakeProxy extends Proxy {
|
export default class HandshakeProxy extends Proxy {
|
||||||
private _node?: any;
|
|
||||||
constructor({ swarm, listen = false }: { swarm: any; listen?: boolean }) {
|
constructor({ swarm, listen = false }: { swarm: any; listen?: boolean }) {
|
||||||
super({
|
super({
|
||||||
swarm,
|
swarm,
|
||||||
|
@ -52,6 +51,12 @@ export default class HandshakeProxy extends Proxy {
|
||||||
const self = this;
|
const self = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private _node?: any;
|
||||||
|
|
||||||
|
get node(): any {
|
||||||
|
return this._node;
|
||||||
|
}
|
||||||
|
|
||||||
protected async _init() {
|
protected async _init() {
|
||||||
this._node = new SPVNode({
|
this._node = new SPVNode({
|
||||||
config: false,
|
config: false,
|
||||||
|
|
Loading…
Reference in New Issue