I am new to writing Figma plugins,I need to transmit values from Figma using MQTT, but it seems that Figma does not support MQTT. Later, I intend to use postMessage to transmit values, but the HTML receiving part refuses to execute.
Figma.ui.postMessage({type: ‘text’,logsContent});
window.onload = () => {
window.onmessage = (event) => {
if(event.data.type === ‘text’){
document.getElementById(‘logsTextarea’).value = event.data.logsContent;
}
}
};
The instruction ‘window.onmessage = (event)’ keeps failing to execute.
Question
Figma use mqtt
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.