Abstract
Private
#clientIDPrivate
#connectedPrivate
Optional
#connectionPrivate
#daemonPrivate
#debugPrivate
#didPrivate
#execPrivate
#logPrivate
#msgIDPrivate
Optional
#mtimePrivate
#mtimePrivate
#pathPrivate
#pidPrivate
Optional
#pingPrivate
Optional
#pingPrivate
Optional
#readerPrivate
#requestsPrivate
#servicePrivate
#socketTrue if currently connected to the daemon service
True if the client is currently connected
The execArgv that is used when spawning the daemon script.
Path where daemon logs are written
Path where the daemonScript mtime is written
The folder where this daemon service stores stuff
File containing the daemon process ID
List of current pending requests
Path to the socket used by this service
Static
daemonThe location of the daemon script that starts up the SockDaemonServer service that this client talks to.
Static
serviceThe name of the service. Must match the value set in the SockDaemonServer class this talks to.
Private
#checkPrivate
#connectPrivate
#onReturns true if the object is a MessageBase
Send a PING message to the server. This can be useful when you want to start the daemon, without making any specific request.
Send a request. The id
property is made optional, because it will
be overridden anyway by a generated message ID. Starts the daemon
script automatically if not already running, and connects if needed.
If an AbortSignal is provided, then the request will be dropped on an abort signal, and the promise rejected with the abort reason, if it has not already been resolved.
Optional
signal: AbortSignalOptional
signal: AbortSignalGenerated using TypeDoc
Override this class to create a Client that can talk to the SockDaemonServer you've created.
Note that the static
serviceName
anddaemonScript
getters MUST be defined on the extended class, referencing the service name and location of the daemon script.