Method: GraphQL::Subscriptions::ActionCableSubscriptions#execute_all

Defined in:
lib/graphql/subscriptions/action_cable_subscriptions.rb

#execute_all(event, object) ⇒ Object

An event was triggered; Push the data over ActionCable. Subscribers will re-evaluate locally.



119
120
121
122
123
# File 'lib/graphql/subscriptions/action_cable_subscriptions.rb', line 119

def execute_all(event, object)
  stream = stream_event_name(event)
  message = @serializer.dump(object)
  @action_cable.server.broadcast(stream, message)
end