Script in background

Hi, I have a python script that is connecting to a webrtc server with websockets. I want this script to receive commands in background, but the asyncio library blocks the unreal UI.
Is there a way to run a script in background without blocking the UI?
Thanks.

1 Like

You could probably try using multithreading lib from python(not threading) or use direct ping instead of async(not the best practice, i know…) or try to do it with language that does not block whole thread from execution(by GIL) such as cpp.

Found the topic while searching for already implemented solution…