Last active
May 28, 2021 12:32
-
-
Save heijmerikx/58b2326397bc569cf3de14ebc48569ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Register for messages sent by hosting component | |
*/ | |
LCM.addMessageHandler((message) => { | |
if(message !== null){ | |
//Do Something | |
} | |
}); | |
/** | |
* Send messages to the hosting component | |
*/ | |
sendMessageToContainer(payload){ | |
LCM.sendMessage(payload); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment