feat: make lastPacketDate accessible readonly
This commit is contained in:
+8
-4
@@ -123,10 +123,6 @@ export class Client extends EventEmitter {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
get address() {
|
|
||||||
return this.#address
|
|
||||||
}
|
|
||||||
|
|
||||||
async #publish(port, flags) {
|
async #publish(port, flags) {
|
||||||
const response = await this.#protoRequest(PublishRequest.create({
|
const response = await this.#protoRequest(PublishRequest.create({
|
||||||
port,
|
port,
|
||||||
@@ -183,4 +179,12 @@ export class Client extends EventEmitter {
|
|||||||
unpublish: flags => this.#unpublish(port)
|
unpublish: flags => this.#unpublish(port)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get address() {
|
||||||
|
return this.#address
|
||||||
|
}
|
||||||
|
|
||||||
|
get lastPacketDate() {
|
||||||
|
return this.#lastPacketDate
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user