An available port number.
Available port numbers.
Returns the requested port if available, or the next available port.
Given a Process
of ServerBlueprint, returns a Process
of Server
.
Given a Process
of ServerBlueprint, returns a Process
of Server
.
The returned process will emit each time a new server configuration is provided and ensures only one server is running at a time, i.e. providing a new Configuration ensures the previous server has been stopped.
When the process of configurations terminates for any reason, the last server is shutdown and the process of servers will terminate.
Whether or not to choose an alternative port if requested port is not available
Start Server
with supplied ServerBlueprint
Start Server
with supplied ServerBlueprint
Whether or not to choose an alternative port if requested port is not available
Server that has been started along with the port on which it was started
Produce a stream of servers that can be restarted on a supplied port
Produce a stream of servers that can be restarted on a supplied port
The port on which to start the initial server
A function that given a function to restart a server
on a new port, returns an HttpService
The Task
will start the first server and provide a function to
shutdown the active server. It will also return a process of
servers and ports. This Process
must be run in order for
servers to actually be started and stopped. The Process
must be
run to completion in order for appropriate clean up to occur.
Returns why the given port is unavailable or None if it is available.