sendMessage() is now deprecated, use trigger() instead