main function

Future<void> main()

Implementation

Future<void> main() async {
  // Set up logging
  Logger.root.level = Level.INFO;
  Logger.root.onRecord.listen((record) {
    print('${record.level.name}: ${record.time}: ${record.message}');
  });

  print('🚀 Starting STOMP Protocol Example');

  try {
    await runStompExample();
  } catch (e, stackTrace) {
    print('❌ Error running STOMP example: $e');
    print('Stack trace: $stackTrace');
    exit(1);
  }
}