*Update dist
This commit is contained in:
parent
7bbfe577c3
commit
619fe7913c
|
@ -39,7 +39,6 @@ export default class Peer {
|
||||||
private _proxy;
|
private _proxy;
|
||||||
private _peer;
|
private _peer;
|
||||||
private _muxer;
|
private _muxer;
|
||||||
private _socket?;
|
|
||||||
private _onopen;
|
private _onopen;
|
||||||
private _onreceive;
|
private _onreceive;
|
||||||
private _onsend;
|
private _onsend;
|
||||||
|
@ -47,6 +46,8 @@ export default class Peer {
|
||||||
private _onchannel;
|
private _onchannel;
|
||||||
private _emulateWebsocket;
|
private _emulateWebsocket;
|
||||||
constructor({ proxy, peer, muxer, onopen, onreceive, onsend, onclose, onchannel, emulateWebsocket, }: PeerOptionsWithProxy & DataSocketOptions);
|
constructor({ proxy, peer, muxer, onopen, onreceive, onsend, onclose, onchannel, emulateWebsocket, }: PeerOptionsWithProxy & DataSocketOptions);
|
||||||
|
private _socket?;
|
||||||
|
get socket(): Socket;
|
||||||
private _channel?;
|
private _channel?;
|
||||||
get channel(): any;
|
get channel(): any;
|
||||||
init(): Promise<void>;
|
init(): Promise<void>;
|
||||||
|
|
|
@ -9,7 +9,6 @@ class Peer {
|
||||||
_proxy;
|
_proxy;
|
||||||
_peer;
|
_peer;
|
||||||
_muxer;
|
_muxer;
|
||||||
_socket;
|
|
||||||
_onopen;
|
_onopen;
|
||||||
_onreceive;
|
_onreceive;
|
||||||
_onsend;
|
_onsend;
|
||||||
|
@ -27,6 +26,10 @@ class Peer {
|
||||||
this._onchannel = onchannel?.bind(undefined, this);
|
this._onchannel = onchannel?.bind(undefined, this);
|
||||||
this._emulateWebsocket = emulateWebsocket;
|
this._emulateWebsocket = emulateWebsocket;
|
||||||
}
|
}
|
||||||
|
_socket;
|
||||||
|
get socket() {
|
||||||
|
return this._socket;
|
||||||
|
}
|
||||||
_channel;
|
_channel;
|
||||||
get channel() {
|
get channel() {
|
||||||
return this._channel;
|
return this._channel;
|
||||||
|
|
Loading…
Reference in New Issue