Module: FeatureChannel::Publisher
- Defined in:
- lib/feature_channel/publisher.rb
Class Method Summary collapse
Class Method Details
.send_message(feature:, id:, type:, payload: nil) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/feature_channel/publisher.rb', line 8 def (feature:, id:, type:, payload: nil) FeatureChannel.delivery_strategy.publish( FeatureChannel.topic, MessagePack.pack( service: FeatureChannel.service_name, feature: feature, id: id.to_s, type: type, payload: payload ) ) end |