Implemented forwarding of requests to the master

Implement the forwardTo function for requests to the master server.
This commit is contained in:
Hornwitser committed 2020-03-13 22:46:17 +01:00
1 parent 5681ef9733
commit 6a8346186f
3 files changed
+15 -6

No files matched your search

+4
View File
@@ -358,6 +358,10 @@ class InstanceConnection extends link.Link {
}
}
async forwardRequestToMaster(message, request) {
return await request.send(this.slave, message.data);
}
async forwardEventToInstance(message, event) {
let instanceId = message.data.instance_id;
let instanceConnection = this.slave.instanceConnections.get(instanceId);