BloomDevServerDiscovery class

UDP discovery service for scanning LAN networks for active Bloom Dev Servers on port 5354.

Example:

final discovery = BloomDevServerDiscovery();
final sub = discovery.discover().listen((servers) {
  print('Found ${servers.length} Bloom dev servers');
});

Constructors

BloomDevServerDiscovery()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

discover({RawDatagramSocket? customSocket}) Stream<List<BloomDiscoveredServer>>
Starts listening for UDP broadcast announcements and returns a stream of discovered servers.
ingestServer(BloomDiscoveredServer server) → void
Manually ingest a discovered server payload (ideal for tests or direct pairing).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stop() → void
Stops discovery listener and releases network socket.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

broadcastAnnouncement({required String name, required String host, required int port, required String projectId, required String appName, String version = '0.1.0', RawDatagramSocket? customSocket}) Future<void>
Broadcasts an announcement packet from a dev server on the local network.

Constants

udpPort → const int
Default UDP multicast/broadcast port for Bloom dev servers.