WebSocketState.connecting constructor
Opening a connection. attempt is 0 for the first try after
connect(), and counts reconnects after that.
Implementation
const factory WebSocketState.connecting({
required Uri url,
required int attempt,
}) = WebSocketState$Connecting;