nsd 1.0.0 copy "nsd: ^1.0.0" to clipboard
nsd: ^1.0.0 copied to clipboard

outdated

Flutter nsd plugin (parent).

nsd #

Flutter CI

A Flutter plugin for Network Service Discovery (NSD).

Service Discovery #

import 'package:nsd/nsd.dart';

final discovery = await startDiscovery('_http._tcp');
discovery.addListener(() {
  // discovery.services contains discovered services
});

// ...

await stopDiscovery(discovery);

Service Registration #

import 'package:nsd/nsd.dart';

final registration = await register(
  const Service(name: 'Foo', type: '_http._tcp', port: 56000));

// ...

await unregister(registration);