from JAK.Utils import Instanceclass Bind: @staticmethod
def listen(data): raise NotImplementedError()Call python methods from JavaScript.
class Communication: @staticmethod
def send(url) -> None:
if ":" in url:
url = url.split(':')[1]
if url.endswith("()"):
eval(f"Bind.{url}")
else:
Bind.listen(url)