Class: Magent::WebSocketChannel
- Inherits:
-
GenericChannel
- Object
- GenericChannel
- Magent::WebSocketChannel
- Defined in:
- lib/magent/web_socket_channel.rb
Instance Attribute Summary
Attributes inherited from GenericChannel
Class Method Summary collapse
Methods inherited from GenericChannel
#collection, #dequeue, #enqueue, #initialize, #message_count, #next_message, #queue_count
Methods included from Failure
#enqueue_error, #error_collection, #error_count, #errors, #failed, #remove_error, #retry_error
Constructor Details
This class inherits a constructor from Magent::GenericChannel
Class Method Details
.dequeue ⇒ Object
8 9 10 |
# File 'lib/magent/web_socket_channel.rb', line 8 def self.dequeue self.instance.dequeue end |
.instance ⇒ Object
12 13 14 |
# File 'lib/magent/web_socket_channel.rb', line 12 def self.instance @channel ||= self.new(Magent.config["websocket_channel"]||"magent.websocket") end |
.push(message) ⇒ Object
3 4 5 6 |
# File 'lib/magent/web_socket_channel.rb', line 3 def self.push() self.instance.enqueue() self.instance end |