*Add getter for socket

This commit is contained in:
Derrick Hammer 2023-03-05 03:00:04 -05:00
parent 41984ae588
commit 7bbfe577c3
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 1 deletions

View File

@ -53,7 +53,6 @@ export default class Peer {
private _proxy: Proxy; private _proxy: Proxy;
private _peer: any; private _peer: any;
private _muxer: any; private _muxer: any;
private _socket?: Socket;
private _onopen: OnOpenBound; private _onopen: OnOpenBound;
private _onreceive: OnReceiveBound; private _onreceive: OnReceiveBound;
private _onsend: OnSendBound; private _onsend: OnSendBound;
@ -83,6 +82,12 @@ export default class Peer {
this._emulateWebsocket = emulateWebsocket; this._emulateWebsocket = emulateWebsocket;
} }
private _socket?: Socket;
get socket(): Socket {
return this._socket;
}
private _channel?: any; private _channel?: any;
get channel(): any { get channel(): any {