connect method
Opens the real-time connection (WebSocket/SSE/polling) honoring ChatConfig.realtimeMode.
Call once after successful authentication. Re-entrant: calling connect while already connected is a cheap no-op; calling it after a disconnect re-opens the channel.
Implementation
@override
Future<void> connect() async {
_connectionState = ChatConnectionState.connected;
_stateController.add(_connectionState);
_eventController.add(const ChatEvent.connected());
}