isRunning property

bool get isRunning

Whether this host accepts sessions and does its background work.

It says nothing about a listening socket: a host embedded in another HTTP server has no socket of its own and is still running.

Implementation

bool get isRunning => _state == SessionHostState.running;