Jifty::Subs -
my $sid = Jifty->subs->add( class => 'Tick', queries => [{ like => '9' }], mode => 'Replace', region => "clock-time", render_with => '/fragments/time', ); Jifty->subs->cancel($sid); my @sids = Jifty->subs->list;
Add a subscription for the current window or session.
Takes the following parameters
What class of object shall we subscribe to notifications on
An array of queries to match items of class class against. The implementation of queries is dependent on the type of object events are being recorded against
class
queries
How should the fragment sent to the client on matching events be rendered. Valid modes are Replace, Bottom and Top
Replace
Bottom
Top
The moniker of the region that updates to this subscription should be rendered into
The path of the fragment used to render items matching this subscription
Cancels session or window's subscription to CHANNEL_ID
Returns a lost of channel ids this session or window is subscribed to.
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.