feat(app): add evaluation history, bot control panel, simulation visualizer, and vendored signalr_core
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:http/io_client.dart';
|
||||
import 'package:signalr_core/signalr_core.dart';
|
||||
|
||||
Future<void> main(List<String> arguments) async {
|
||||
final connection = HubConnectionBuilder()
|
||||
.withUrl(
|
||||
'http://localhost:5115/chatHub',
|
||||
HttpConnectionOptions(
|
||||
client: IOClient(
|
||||
HttpClient()..badCertificateCallback = (x, y, z) => true),
|
||||
logging: (level, message) => print(message),
|
||||
))
|
||||
.build();
|
||||
|
||||
await connection.start();
|
||||
|
||||
connection.on('ReceiveMessage', (message) {
|
||||
print(message.toString());
|
||||
});
|
||||
|
||||
await connection.invoke('SendMessage', args: ['Bob', 'Says hi!']);
|
||||
}
|
||||
Reference in New Issue
Block a user