uce/site/doc/pages/server_stop.txt

20 lines
527 B
Plaintext

:sig
bool server_stop(String key)
:params
key : runtime-wide server key used with `server_start_http()`
return value : `true` when no listener remains or a stop signal was sent
:see
>sys
server_start_http
:content
Stops a custom server listener by key and removes its registry config.
```uce
server_stop("site-tests-http");
```
`server_stop()` currently targets custom servers started through `server_start_http()`. The same key model is intended to extend to future `server_start_tcp()` and `server_start_udp()` helpers.