angel_hot 2.0.6 copy "angel_hot: ^2.0.6" to clipboard
angel_hot: ^2.0.6 copied to clipboard

Supports hot reloading/hot code push of Angel servers on file changes.

example/main.dart

import 'dart:io';
import 'package:angel_hot/angel_hot.dart';
import 'server.dart';

main() async {
  var hot = HotReloader(createServer, [
    Directory('src'),
    'server.dart',
    // Also allowed: Platform.script,
    Uri.parse('package:angel_hot/angel_hot.dart')
  ]);
  await hot.startServer('127.0.0.1', 3000);
}