notifyClient method
Implementation
@override
Future<void> notifyClient(
String characteristicUuid,
List<int> value,
String clientId,
) async {
if (activeProfile == null ||
subscribers[characteristicUuid]?.contains(clientId) != true) {
throw StateError('Client is not subscribed');
}
final event = <String, Object>{
'uuid': characteristicUuid,
'value': List<int>.of(value),
'clientId': clientId,
};
notifications.add(event);
_notificationEvents.add(event);
}