platform/sandbox/mqueue/example/main.dart
2024-11-12 01:00:05 -07:00

16 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();
}