Streams.Subscription Class
Class representing 'Subscription' rows in the 'Streams' database
{"type": [ array of message types ], "notifications": 5}
Constructor
Streams.Subscription
(
-
fields
Parameters:
-
fieldsObjectThe fields values to initialize table row as an associative array of
{column: value}pairs
Methods
setUp
()
The setUp() method is called the first time an object of this class is constructed.
test
(
static
-
userId -
publisherId -
stream -
callback
Test message according to filters set up for the user and generate array of subscription rules