@orkestrel/server 0.0.12 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1782,10 +1782,11 @@ var Negotiator = class {
1782
1782
  * - **Lifecycle (AGENTS §10).** `start(signal?)` builds the underlying `node:http`
1783
1783
  * server, binds the configured {@link ServerOptions.host} / {@link
1784
1784
  * ServerOptions.port} (omitted/`0` port ⇒ EPHEMERAL, resolved from the
1785
- * bound address), observes caller cancellation plus the configured
1786
- * `timeouts.start` deadline while the bind is pending, and transitions
1787
- * `idle → starting → listening`. A cancelled or expired bind closes its
1788
- * partial server and resets to `idle` for another start. `stop()` transitions
1785
+ * bound address), exposes that {@link AddressInfo} through `address`, observes
1786
+ * caller cancellation plus the configured `timeouts.start` deadline while the
1787
+ * bind is pending, and transitions `idle → starting → listening`. A
1788
+ * cancelled or expired bind closes its partial server and resets to `idle` for
1789
+ * another start. `stop()` transitions
1789
1790
  * to `stopping`: refuses new connections, fires a fresh-per-run stop signal
1790
1791
  * so in-flight handlers observe cancellation, drains in-flight requests AND
1791
1792
  * claimed upgraded sockets up to the `drain` deadline (event-driven, no
@@ -1881,6 +1882,10 @@ var Server = class {
1881
1882
  get port() {
1882
1883
  return this.#port;
1883
1884
  }
1885
+ get address() {
1886
+ const address = this.#http?.address();
1887
+ return isAddressInfo(address) ? address : void 0;
1888
+ }
1884
1889
  get dispatcher() {
1885
1890
  return this.#dispatcher;
1886
1891
  }