connect method
Connects to the WebSocket server.
url
- the URL that was used to establish the connection.
Implementation
@override
Future<void> connect(String url) {
if (_isClosed) return Future<void>.error(const WSClientClosed());
return _eventQueue.push('connect', () {
WebSocketConnectionManager.instance.startMonitoringConnection(this, url);
return _client.connect(url);
});
}