dojo._base.connect contains functions for connecting methods to events and to subscribe and publish events.
As with all dojo._base components, these functions are included within Dojo Base. You get this functionality by just including dojo.js or dojo.xd.js in your page.
Connects events to methods
Disconnects methods from linked topics
Linked a listener to a named topic
Remove a topic listener
Publish an event to all subscribers of a topic
Ensure that everytime an event is called, a message is published on the topic.