feat: implement sensor calibration flow
This commit is contained in:
@@ -78,6 +78,12 @@ class RealtimeDataClient {
|
||||
.map((msg) => (event: msg.event.value, payload: msg.payload ?? const {}));
|
||||
}
|
||||
|
||||
/// Leaves [topic] and removes it from the channel cache.
|
||||
void leaveChannel(String topic) {
|
||||
final ch = _channels.remove(topic);
|
||||
ch?.leave();
|
||||
}
|
||||
|
||||
/// Pushes [event] on [topic] and waits for the server reply.
|
||||
/// The channel must have been joined first via [channel].
|
||||
Future<Map<String, dynamic>> push(
|
||||
|
||||
Reference in New Issue
Block a user