BuoySyncClient class
Constructors
-
BuoySyncClient({required String deviceName, required String deviceId, required String platform, String socketUrl = 'http://localhost:$defaultBrokerPort', String? licenseKey, Map<
String, ToolSyncAdapter> tools = const {}, Duration throttle = const Duration(milliseconds: 200), Map<String, Object?> extraDeviceInfo = const {}})
Properties
- deviceId → String
-
final
- deviceName → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConnected → bool
-
no setter
- licenseKey → String?
-
When set, the device reports Pro status to the broker after each
(re)connect — required for the MCP server's data/action tools, which are
gated on the device's isPro flag.
final
- platform → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- socketUrl → String
-
final
-
status
→ ValueNotifier<
BuoySyncStatus> -
Live connection status for the settings modal.
latefinal
- throttle → Duration
-
final
-
tools
→ Map<
String, ToolSyncAdapter> -
final
Methods
-
addTool(
String toolId, ToolSyncAdapter adapter) → void - Register a tool after construction (late registration from tool packages). Re-announces capabilities so the broker/dashboards learn the new tool and re-send its watch state.
-
connect(
) → void -
dispose(
) → void -
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
Static Properties
- instance ↔ BuoySyncClient?
-
The app's client, for status display (set on connect).
getter/setter pair