close

abstract override fun close()

Closes the server.

The locally bound socket listening to new connections is freed immediately. Active connections might stay alive after this call but will eventually terminate.