From 35bf05c25ec48099017a35b9c7953a8e38f6c24a Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 16 Apr 2023 05:38:59 -0400 Subject: [PATCH] *Update dist --- dist/proxies/multiSocket.d.ts | 2 +- dist/proxies/multiSocket.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/proxies/multiSocket.d.ts b/dist/proxies/multiSocket.d.ts index 54014c6..2e1bc82 100644 --- a/dist/proxies/multiSocket.d.ts +++ b/dist/proxies/multiSocket.d.ts @@ -25,7 +25,7 @@ export default class MultiSocketProxy extends Proxy { handleClosePeer(peer: Peer): Promise; get(pubkey: Uint8Array): PeerEntity | undefined; update(pubkey: Uint8Array, data: Partial): void; - createSocket(options: TcpSocketConnectOpts): Promise; + createSocket(options: TcpSocketConnectOpts): typeof this.socketClass; private _registerOpenSocketMessage; private _registerWriteSocketMessage; private _registerCloseSocketMessage; diff --git a/dist/proxies/multiSocket.js b/dist/proxies/multiSocket.js index ee39f9e..2d1e067 100644 --- a/dist/proxies/multiSocket.js +++ b/dist/proxies/multiSocket.js @@ -136,7 +136,7 @@ class MultiSocketProxy extends proxy_js_1.default { }, }); } - async createSocket(options) { + createSocket(options) { if (!this._peers.size) { throw new Error("no peers found"); }