Change 'sendEvent' to 'publish'.
Add unsubscribe handling.