fix: need a getter for id

This commit is contained in:
Derrick Hammer 2023-08-31 02:25:27 -04:00
parent 31e63f6c63
commit fbffb1da72
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,10 @@ export class TcpPeer implements Peer {
private _id?: NodeId; private _id?: NodeId;
get id(): NodeId {
return this._id as NodeId;
}
set id(value: NodeId) { set id(value: NodeId) {
this._id = value; this._id = value;
} }

View File

@ -16,6 +16,10 @@ export class WebSocketPeer implements Peer {
private _id?: NodeId; private _id?: NodeId;
get id(): NodeId {
return this._id as NodeId;
}
set id(value: NodeId) { set id(value: NodeId) {
this._id = value; this._id = value;
} }