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"); }