Skip to content

KAZOO Support Channels

This documentation is curated by 2600Hz as part of the KAZOO open source project. Join our community forums here for peer support. Only features in the docs.2600hz.com/supported space are included as part of our 2600Hz Support Services plan.

monster.pub()#

Syntax#

monster.pub(topic[, data]);

Parameters#

Key Description Type Default Required
topic Alias for the method to publish. String true
data Parameters passed to the method published. Object, Array, String, Number, Function {} false

Description#

The monster.pub() method let you publish all the methods that were exposed by other developers of Monster applications or let you access the Monster Core Apps and Monster Common Controls methods to perform common actions (see examples).

To see how to make a method publishable, go to the related documentation.

Examples#

monster.pub('myaccount.hide');

Invoke the buyNumbers common control#

monster.pub('common.buyNumbers');