Sha256: 3047b4e02c43bb7c0593f0e18fe79d1e8345ccbbc98cc7b926597f35ce159c01
Contents?: true
Size: 1.21 KB
Versions: 6
Compression:
Stored size: 1.21 KB
Contents
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`. namespace :streams do subscribe :active_streams, to: KurentoWebsocketsController, with_method: :active_streams subscribe :recorded_streams, to: KurentoWebsocketsController, with_method: :recorded_streams subscribe :broadcast, to: KurentoWebsocketsController, with_method: :broadcast subscribe :stop_broadcasting, to: KurentoWebsocketsController, with_method: :stop_broadcasting subscribe :view, to: KurentoWebsocketsController, with_method: :view end subscribe :client_disconnected, to: KurentoWebsocketsController, with_method: :user_disconnect end
Version data entries
6 entries across 3 versions & 1 rubygems