17 lines
297 B
Dart
17 lines
297 B
Dart
|
import 'package:angel3_mq/mq.dart';
|
||
|
|
||
|
import 'receiver.dart';
|
||
|
import 'sender.dart';
|
||
|
|
||
|
void main() async {
|
||
|
MQClient.initialize();
|
||
|
|
||
|
final sender = Sender();
|
||
|
|
||
|
final receiver = Receiver()..listenToGreeting();
|
||
|
|
||
|
await sender.sendGreeting(greeting: 'Hello, World!');
|
||
|
|
||
|
receiver.stopListening();
|
||
|
}
|