Sha256: f97d6757bda52ade3a39c627421470f815e332db682e4fed9369c80a1bda6736

Contents?: true

Size: 1.26 KB

Versions: 3

Compression:

Stored size: 1.26 KB

Contents

WebsocketRails.setup do |config|

  # Change to :debug for debugging output
  config.log_level = :default

  # Change to true to enable standalone server mode
  # Start the standalone server with rake websocket_rails:start_server
  # Requires Redis
  config.standalone = false

  # Change to true to enable channel synchronization between
  # multiple server instances. Requires Redis.
  config.synchronize = false

  # Uncomment and edit to point to a different redis instance.
  # Will not be used unless standalone or synchronization mode
  # is enabled.
  #config.redis_options = {:host => 'localhost', :port => '6379'}
end

WebsocketRails::EventMap.describe do
  # You can use this file to map incoming events to controller actions.
  # One event can be mapped to any number of controller actions. The
  # actions will be executed in the order they were subscribed.
  #
  # Uncomment and edit the next line to handle the client connected event:
  #   subscribe :client_connected, :to => Controller, :with_method => :method_name
  #
  # Here is an example of mapping namespaced events:
  #   namespace :product do
  #     subscribe :new, :to => ProductController, :with_method => :new_product
  #   end
  # The above will handle an event triggered on the client like `product.new`.
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
websocket-rails-0.3.0 lib/generators/websocket_rails/install/templates/events.rb
websocket-rails-0.2.1 lib/generators/websocket_rails/install/templates/events.rb
websocket-rails-0.2.0 lib/generators/websocket_rails/install/templates/events.rb