Method: OpenC3::ReactionModel#notify
- Defined in:
- lib/openc3/models/reaction_model.rb
#notify(kind:) ⇒ Object
Returns [] update the redis stream / reaction topic that something has changed.
278 279 280 281 282 283 284 285 |
# File 'lib/openc3/models/reaction_model.rb', line 278 def notify(kind:) notification = { 'kind' => kind, 'type' => 'reaction', 'data' => JSON.generate(as_json(:allow_nan => true)), } AutonomicTopic.write_notification(notification, scope: @scope) end |