FanetClient class final

REST client for a fa_network server.

Constructors

FanetClient({required String baseUrl, Client? client})
Creates a client against baseUrl (the server origin, e.g. https://network.fa1.dev; a trailing slash is tolerated).

Properties

baseUrl → String
The server origin all endpoints are resolved against.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Closes the underlying HTTP client when this instance owns it.
enrollAgent(String networkId, {required String token, required String name}) → Future<FanetAgentEnrollment>
Enrolls an agent name in networkId, authenticated with an owner/admin-class token (management JWT or owner/admin sessionToken — a plain member sessionToken gets 403).
joinNetwork(String networkId, {required String password, String? displayName}) → Future<FanetJoinResult>
Joins networkId with password (and optional displayName).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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