Abstract
Private
#connectionPrivate
Optional
#daemonPrivate
#didPrivate
#idlePrivate
Optional
#idlePrivate
#logPrivate
#mtimePrivate
#namePrivate
#pathPrivate
#pidPrivate
Optional
#serverPrivate
#socketPrivate
#startingTime in milliseconds before a connection will be disconnected if
it does not make any requests. Defaults to 1000
(1 second)
Time in milliseconds before the daemon will close if no requests
are received. Defaults to 3_600_000
(1 hour)
Path where daemon logs are written
File containing the numeric mtime of the daemon script, so that it can be restarted on change.
The folder where this daemon service stores stuff
File containing the daemon process ID
When listening, the net.Server object
Path to the socket used by this service
Static
serviceThe name of the service. Must match the value set in the SockDaemonClient class that connects to this service.
Private
#idlePrivate
#listenPrivate
#onPrivate
#onPrivate
#tryPrivate
#usurpAbstract
handleMethod that receives Request objects and returns a Response object to be sent over the socket to the client.
Check if the supplied object is a MessageBase
Generated using TypeDoc
Extend this class to create a SockDaemonService that is used by your daemonScript program to service requests.