closeWebSockets

abstract suspend fun closeWebSockets()

Close open WebSockets and wait until their clients finish; HTTP requests and later WebSockets still work. The engine may finish closing the native socket afterwards. Stop collectors first, or they may reconnect.