From 619fe7913cec75c15e39b3af062c769228e29c05 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 5 Mar 2023 03:00:28 -0500 Subject: [PATCH] *Update dist --- dist/peer.d.ts | 3 ++- dist/peer.js | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/peer.d.ts b/dist/peer.d.ts index 57c2627..fc503ae 100644 --- a/dist/peer.d.ts +++ b/dist/peer.d.ts @@ -39,7 +39,6 @@ export default class Peer { private _proxy; private _peer; private _muxer; - private _socket?; private _onopen; private _onreceive; private _onsend; @@ -47,6 +46,8 @@ export default class Peer { private _onchannel; private _emulateWebsocket; constructor({ proxy, peer, muxer, onopen, onreceive, onsend, onclose, onchannel, emulateWebsocket, }: PeerOptionsWithProxy & DataSocketOptions); + private _socket?; + get socket(): Socket; private _channel?; get channel(): any; init(): Promise; diff --git a/dist/peer.js b/dist/peer.js index a1e9e23..4245f08 100644 --- a/dist/peer.js +++ b/dist/peer.js @@ -9,7 +9,6 @@ class Peer { _proxy; _peer; _muxer; - _socket; _onopen; _onreceive; _onsend; @@ -27,6 +26,10 @@ class Peer { this._onchannel = onchannel?.bind(undefined, this); this._emulateWebsocket = emulateWebsocket; } + _socket; + get socket() { + return this._socket; + } _channel; get channel() { return this._channel;