Skip to content

A rails plugin engine to use signals events between ajax-driven web client and your web server.

License

Notifications You must be signed in to change notification settings

atalargo/Signals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Signals
=======

BE CAREFUL in Beta yet!!

in application layout add, after javascripts include tag :

	<%= activeSignalsJavascript %>

or if you don't want default timeout

	<%= activeSignalsJavascript {:timeActive => XX, :timeInactive => XXXX} %>

After you can send event in your code with :

	SignalEvent.emit(target, paramsevent);


 - Now Signals could use differents backend : Mongoid or ActiveRecord (if you use Mongoid backend you can pass ActiveRecord target, it's not a problem, reverse it's not possible yet)
 - Now it's compatible with Rails 3!!

MORE DOCUMENTATION must be provided later!!!


to configure the plugin you must provide an initializer like this :

*********

SignalsEvent.backend = 'mongoid' # or 'ar' for activerecord
SignalsEvent.default_end_in = 10.seconds # default is 5 minutes if not changed here

require 'lib/signals_lib' #if you provide your own SignalsLib Checker load them here

*************



Copyright (c) 2009-2010 Florent Ruard-Dumaine, released under the MIT license

About

A rails plugin engine to use signals events between ajax-driven web client and your web server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages