I have a platform event in my managed package.
I have a LWC that subscribes to it.
For this LWC to work in subscriber org, does my LWC need to include the namespace?
In my managed package development org, my LWC subscribes with:
subscribe('/event/My_Platform_Event__e', -1, messageCallback)
'/event/My_Platform_Event__e' is just a string, so I'm concerned it won't resolved to my namespace in subscriber org.
Do I need to update it to:
subscribe('/event/MY_NS__My_Platform_Event__e', -1, messageCallback)
Both of these approaches work in my managed package development org. But I don't know if they'll both work susbscriber org.