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