Spring '25 (API version 63.0)
Newer Version Available
The following code example shows how to call the unsubscribe method within a Visualforce page to unsubscribe from two events.
1Sfdc.canvas.controller.unsubscribe(['mynamespace.myevent2', 'mynamespace.myevent2']);