def METHOD_NAME(self, func):
    log.debug("websocket.call {}".format(func))
    future = asyncio.run_coroutine_threadsafe(
        func,
        self.webserver_thread.loop
    )
    result = future.result()
    return result