websocketKeepAlive (Function)

Signature: websocketKeepAlive() -> Unit

Description: Blocks until SIGINT or SIGTERM so server threads remain alive.

Returns: Unit

Example

websocketKeepAlive()  // Blocks until Ctrl+C
websocketKeepAlive ()  // Blocks until Ctrl+C