subscribeToUpdates method
Implementation
subscribeToUpdates(CASMLike casm) {
//only subscribe once otherwise will end up being called multiple times for a single update
if (!_registered) {
casm.on<EntityEventSourceState>(entityUpdateEventName(hypi.id),
(prev, current) {
onUpdate(current.value.value);
}, state: TinkCASMStatus(serialisableIsAlive ?? () => false, this));
_registered = true;
}
}