Can't run streamlit and client side websocket at the same time on local machine

get “Value error: signal only works in main thread” With python I have tried multithreading, multiprocessing and asyncio with out any luck, however i am not an experienced programmer. I use to start “os.system(‘cmd /k “streamlit run main.py”’)”