Daemonize slave

Rework client.js to support running multiple instances at once and be
managed remotely and implement the neccessary communication
infrastructure for this.

Due to circular dependencies on the implementation of this the master
branch is significantly broken after this.
This commit is contained in:
Hornwitser committed 2019-11-23 15:16:47 +01:00
1 parent 5858d97857
commit 7a2abaa5db
29 files changed
+2811 -800

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
/**
* Errors thrown in Clusterio
* @module
*/
class CommandError extends Error { }
class RequestError extends Error { }
// Signal for messages that fail validation
class InvalidMessage extends Error { }
// Errror class for known errors occuring during startup
class StartupError extends Error { }
module.exports = {
CommandError,
RequestError,
InvalidMessage,
StartupError,
}