from lnx.logicnode.lnx_nodes import * class WebviewSendNode(LnxLogicTreeNode): """Sends a message to the given WebView received via window.onMessage""" bl_idname = 'LNWebviewSendNode' bl_label = 'Webview Send' lnx_category = 'Krom Runtime' lnx_section = 'webview' lnx_version = 1 def lnx_init(self, context): self.add_input('LnxNodeSocketAction', 'In') self.add_input('LnxIntSocket', 'ID') self.add_input('LnxStringSocket', 'Message') self.add_output('LnxNodeSocketAction', 'Out')