isStarted
Represents the current state of the server, indicating whether it has been started and is actively running.
This state flow emits a boolean value:
true
if the server is running and ready to process incoming connections or events.false
if the server is stopped or has not yet been started.
The value of isStarted
is updated automatically based on the server's lifecycle transitions, such as when starting or stopping the server.
This property can be used to monitor the server's state, ensuring that its operations are executed only when it is in the appropriate running state. It is particularly useful for preventing redundant start operations or for providing feedback to the client.