Skip to content

Instantly share code, notes, and snippets.

@heijmerikx
Last active May 28, 2021 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heijmerikx/58b2326397bc569cf3de14ebc48569ae to your computer and use it in GitHub Desktop.
Save heijmerikx/58b2326397bc569cf3de14ebc48569ae to your computer and use it in GitHub Desktop.
/**
* 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