subscribe

subscribe(key, category="default")

Allow a user to subscribe to this message key. All messages

belonging to the corresponding key will be available to users

subscribed to it.

params

key - unique key for this message

keyparam

category - value to categorize this message

return

subscription sobject