dart_service_announcement 0.1.0 copy "dart_service_announcement: ^0.1.0" to clipboard
dart_service_announcement: ^0.1.0 copied to clipboard

outdated

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 {
  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();
}
4
likes
0
pub points
7%
popularity

Publisher

verified publisherchimerapps.com

Helper libraries for creating discoverable development services

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

logging, meta, synchronized

More

Packages that depend on dart_service_announcement