*Add getter for socket
This commit is contained in:
parent
41984ae588
commit
7bbfe577c3
|
@ -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