Compare commits
2 Commits
a24a0414ce
...
704abf6f4f
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 704abf6f4f | |
Derrick Hammer | 4862013f03 |
|
@ -1,9 +1,10 @@
|
||||||
import { Proxy } from "@lumeweb/libhyperproxy";
|
import { Proxy } from "@lumeweb/libhyperproxy";
|
||||||
export default class HandshakeProxy extends Proxy {
|
export default class HandshakeProxy extends Proxy {
|
||||||
private _node?;
|
|
||||||
constructor({ swarm, listen }: {
|
constructor({ swarm, listen }: {
|
||||||
swarm: any;
|
swarm: any;
|
||||||
listen?: boolean;
|
listen?: boolean;
|
||||||
});
|
});
|
||||||
|
private _node?;
|
||||||
|
get node(): any;
|
||||||
protected _init(): Promise<void>;
|
protected _init(): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,9 @@ class HandshakeProxy extends libhyperproxy_1.Proxy {
|
||||||
});
|
});
|
||||||
const self = this;
|
const self = this;
|
||||||
}
|
}
|
||||||
|
get node() {
|
||||||
|
return this._node;
|
||||||
|
}
|
||||||
async _init() {
|
async _init() {
|
||||||
this._node = new node_1.SPVNode({
|
this._node = new node_1.SPVNode({
|
||||||
config: false,
|
config: false,
|
||||||
|
|
|
@ -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