*Update dist

This commit is contained in:
Derrick Hammer 2023-03-02 05:41:30 -05:00
parent b3a7c0b4e1
commit b14509d6f1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 6 additions and 2 deletions

3
dist/peer.d.ts vendored
View File

@ -42,7 +42,8 @@ export default class Peer {
private _onsend;
private _onclose;
private _emulateWebsocket;
private _channel?;
constructor({ proxy, peer, muxer, onopen, onreceive, onsend, onclose, emulateWebsocket, }: PeerOptionsWithProxy & DataSocketOptions);
private _channel?;
get channel(): any;
init(): Promise<void>;
}

5
dist/peer.js vendored
View File

@ -15,7 +15,6 @@ class Peer {
_onsend;
_onclose;
_emulateWebsocket;
_channel;
constructor({ proxy, peer, muxer, onopen, onreceive, onsend, onclose, emulateWebsocket = false, }) {
this._proxy = proxy;
this._peer = peer;
@ -26,6 +25,10 @@ class Peer {
this._onclose = onclose?.bind(undefined, this);
this._emulateWebsocket = emulateWebsocket;
}
_channel;
get channel() {
return this._channel;
}
async init() {
const write = async (data, cb) => {
pipe.send(data);