Compare commits
2 Commits
41984ae588
...
619fe7913c
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 619fe7913c | |
Derrick Hammer | 7bbfe577c3 |
|
@ -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<void>;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -53,7 +53,6 @@ export default class Peer {
|
|||
private _proxy: Proxy;
|
||||
private _peer: any;
|
||||
private _muxer: any;
|
||||
private _socket?: Socket;
|
||||
private _onopen: OnOpenBound;
|
||||
private _onreceive: OnReceiveBound;
|
||||
private _onsend: OnSendBound;
|
||||
|
@ -83,6 +82,12 @@ export default class Peer {
|
|||
this._emulateWebsocket = emulateWebsocket;
|
||||
}
|
||||
|
||||
private _socket?: Socket;
|
||||
|
||||
get socket(): Socket {
|
||||
return this._socket;
|
||||
}
|
||||
|
||||
private _channel?: any;
|
||||
|
||||
get channel(): any {
|
||||
|
|
Loading…
Reference in New Issue