feat(app): add evaluation history, bot control panel, simulation visualizer, and vendored signalr_core
This commit is contained in:
@@ -14,13 +14,11 @@ class NewsBloc extends Bloc<NewsEvent, NewsState> {
|
||||
on<LoadMoreNews>(_onLoadMoreNews);
|
||||
on<ReceiveLiveNews>(_onReceiveLiveNews);
|
||||
|
||||
// Subscribe to live news from SignalR
|
||||
// Subscribe to live news pushed over the central SignalRService's
|
||||
// `/hubs/news` connection (authenticated, managed in main.dart).
|
||||
_liveNewsSubscription = repository.liveNewsStream.listen((article) {
|
||||
add(ReceiveLiveNews(article));
|
||||
});
|
||||
|
||||
// Connect to SignalR
|
||||
repository.connectToLiveFeed();
|
||||
}
|
||||
|
||||
Future<void> _onFetchNews(FetchNews event, Emitter<NewsState> emit) async {
|
||||
|
||||
Reference in New Issue
Block a user