How long close waits for the socket's sink to close.
WebSocketChannel.sink.close() never completes if the connection
failed or is still pending, so it must not be awaited unbounded.
How long connect waits for the WebSocket handshake to complete.
WebSocket.connect has no timeout of its own, so a connection attempt
on a blocked network (e.g. an app in the background on Android 17)
could otherwise stay pending forever.