Skip to main content

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

Freedome client SDK: transports, discovery, auth, repositories and codecs (pure Dart).

example/example.dart

// Connects to a dome, starts a show, follows the player for five seconds. NativeMindNONC.
import 'dart:io';

import 'package:freedome_client/freedome_client.dart';

Future<void> main() async {
  final client = FreedomeClient(
    endpoint: FreedomeEndpoint.parse('http://dome.local:8080'),
    credentials: const PasswordCredentials('operator', 'secret'),
  );
  await client.open();
  final sub = client.playback.states.listen((s) => stdout.writeln(s));
  await client.playback.play(const PlayTarget.show('night-sky'));
  await Future<void>.delayed(const Duration(seconds: 5));
  await client.playback.stop();
  await sub.cancel();
  await client.close();
}
0
likes
150
points
28
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Freedome client SDK: transports, discovery, auth, repositories and codecs (pure Dart).

Homepage
Repository (GitLab)

License

unknown (license)

Dependencies

archive, clock, crypto, ed25519_edwards, freedome_protocol, http, meta, multicast_dns, socket_io_client, web_socket_channel

More

Packages that depend on freedome_client