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
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
nameinnetworkId, authenticated with an owner/admin-classtoken(management JWT or owner/admin sessionToken — a plain member sessionToken gets403). -
joinNetwork(
String networkId, {required String password, String? displayName}) → Future< FanetJoinResult> -
Joins
networkIdwithpassword(and optionaldisplayName). -
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