Optional
options: SockDaemonServerOptionsTime 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.
Method that receives Request objects and returns a Response object to be sent over the socket to the client.
Time in milliseconds before a connection will be disconnected if it does not make any requests. Defaults to
1000
(1 second)