An instance of TuftServer is returned whenever the
.createServer() method of TuftRouteMap is called.
Returns a promise that resolves with an object containing the
port the server is listening on once the server has started.
Returns a promise that resolves once all current connections have been closed and the server has stopped.
Sets the timeout value (a number) in milliseconds for requests to the server. The provided
callback is invoked whenever the timeout value is reached.
0 (no timeout).
Throws an error if the provided
callback is not a function.
If called while the server is running, returns an object containing data about the current server, such as the IP address and port number the server is listening on.
The IP address or hostname that the server will listen on when it's running.
The port that the server will listen on when it's running.