mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-24 16:23:12 +09:00
Add SlaveConnection.id
Add .id property to access the id of the slave this SlaveConnection is for.
This commit is contained in:
1 parent
322570f298
commit
e9c3c38a53
1 file changed
+9
@@ -41,6 +41,15 @@ class SlaveConnection extends BaseConnection {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID of the slave this connection is connected to
|
||||||
|
*
|
||||||
|
* @returns {number} slave ID.
|
||||||
|
*/
|
||||||
|
get id() {
|
||||||
|
return this._id;
|
||||||
|
}
|
||||||
|
|
||||||
async instanceStatusChangedEventHandler(message, event) {
|
async instanceStatusChangedEventHandler(message, event) {
|
||||||
let instance = this._master.instances.get(message.data.instance_id);
|
let instance = this._master.instances.get(message.data.instance_id);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user