Unsubscribing from Events in a Visualforce Page

The following code example shows how to call the unsubscribe method within a Visualforce page to unsubscribe from two events.

Sfdc.canvas.controller.unsubscribe(['mynamespace.myevent2', 'mynamespace.myevent2']);