Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
<lightning:empApi aura:id="empApi" />
<lightning:input aura:id="channel" label="channel" name="channel" type="text" value="/event/Notification__e"/>
<aura:handler name="init" value="{!this}" action="{!c.onInit}"/>
<lightning:button label="Subscribe" onclick="{! c.subscribe }" />
<lightning:button label="Unsubscribe" onclick="{! c.unsubscribe }" />
<aura:attribute name="subscription" type="Map" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.