closeTimeout property

Duration closeTimeout
final

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.

Implementation

final Duration closeTimeout;