Class: WebsocketRails::InternalEvents

Inherits:
Object
  • Object
show all
Defined in:
lib/websocket_rails/internal_events.rb

Class Method Summary collapse

Class Method Details

.eventsObject


3
4
5
6
7
8
9
10
11
# File 'lib/websocket_rails/internal_events.rb', line 3

def self.events
  Proc.new do
    namespace :websocket_rails do
      subscribe :pong, :to => InternalController, :with_method => :do_pong
      subscribe :subscribe, :to => InternalController, :with_method => :subscribe_to_channel
      subscribe :unsubscribe, :to => InternalController, :with_method => :unsubscribe_to_channel
    end
  end
end