dart_service_announcement 1.0.0
dart_service_announcement: ^1.0.0 copied to clipboard

Helper libraries for creating discoverable development services

example/main.dart

// Copyright (c) 2020, Nicola Verbeeck
// All rights reserved. Use of this source code is governed by
// an MIT license that can be found in the LICENSE file.

import 'package:dart_service_announcement/dart_service_announcement.dart';

class DemoServer extends ToolingServer {
  @override
  int get port => 10290;

  @override
  int get protocolVersion => 4;
}

Future<void> main() async {
  final manager =
      ServerAnnouncementManager('com.example.test', 6394, DemoServer());

  await manager.start();

  //Run tooling server etc

  const waitDuration = Duration(seconds: 1000000);

  await Future.delayed(waitDuration);

  await manager.stop();
}
1
likes
130
pub points
81%
popularity

Publisher

chimerapps.com

Helper libraries for creating discoverable development services

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

logging, synchronized

More

Packages that depend on dart_service_announcement