Class: Vines::Services::Controller::MessagesController

Inherits:
BaseController
  • Object
show all
Defined in:
lib/vines/services/controller/messages_controller.rb

Overview

Broadcast messages from a user to a group of systems (a.k.a. a service). Responses from the agents are routed back through the component so the user appears to be talking to just the service’s JID, not each and every agent that belongs to the service.

Constant Summary collapse

NS =
'http://getvines.com/protocol'.freeze

Instance Attribute Summary

Attributes inherited from BaseController

#node, #storage, #stream, #uploads

Instance Method Summary collapse

Methods inherited from BaseController

#initialize, register

Constructor Details

This class inherits a constructor from Vines::Services::Controller::BaseController

Instance Method Details

#processObject



15
16
17
# File 'lib/vines/services/controller/messages_controller.rb', line 15

def process
  current_user.system? ? forward_to_user : forward_to_service
end