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.

param:

key - unique key for this message

keyparam:

category - value to categorize this message

return:

dict - subscription sobject