dart_service_announcement 0.2.0 dart_service_announcement: ^0.2.0 copied to clipboard
Helper libraries for creating discoverable development services
A helper library for creating tooling announcement servers for tools such as niddler
Usage #
A simple usage example:
import 'package:dart_service_announcement/dart_service_announcement.dart';
class DemoServer extends ToolingServer {
DemoServer(int port, int protocolVersion) : super(port, protocolVersion);
}
Future<void> main() async {
final manager =
ServerAnnouncementManager('com.example.test', 6394, DemoServer(10290, 2));
await manager.start();
//Run tooling server etc
const waitDuration = Duration(seconds: 1000000);
await Future.delayed(waitDuration);
await manager.stop();
}
Features and bugs #
Please file feature requests and bugs at the issue tracker.