How can I use Gradio websocket API
I make a Android App with JAVA. I can’t use the Python or JS Gradio API.Then, I have called Gradio API with REST. It is work ok if process (file) is short time. But It will disconnect if HTTP timeout when processing big file.Then, I try to use the websocket API(undocument) to connect the Gradio ,I refer the linkhttps://prog.world/artificial-artist-google-from-text-to-img-world/.It looks work a few days, But it will fail alway after some days.I look the error in spaces’s logs. It will occur when the websocket start to connect, before send any message. I wonder  why the server block the connecting? Do I lost some operation?Then , I have use different Android websocket library (AndroidAsync or autobahn-java]) to check it , It looks like the server issue.I want konw anyone meeting the issue?-----------------------------------------------logs---------------------------------------------------------------------ERROR:    Exception in ASGI applicationTraceback (most recent call last):File “/home/user/.local/lib/python3.10/site-packages/uvicorn/protocols/websockets/websockets_impl.py”, line 254, in run_asgiresult = await self.app(self.scope, self.asgi_receive, self.asgi_send)File “/home/user/.local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py”, line 78, incallreturn await self.app(scope, receive, send)File “/home/user/.local/lib/python3.10/site-packages/fastapi/applications.py”, line 282, incallawait super().call(scope, receive, send)File “/home/user/.local/lib/python3.10/site-packages/starlette/applications.py”, line 122, incallawait self.middleware_stack(scope, receive, send)File “/home/user/.local/lib/python3.10/site-packages/starlette/middleware/errors.py”, line 149, incallawait self.app(scope, receive, send)File “/home/user/.local/lib/python3.10/site-packages/starlette/middleware/cors.py”, line 75, incallawait self.app(scope, receive, send)File “/home/user/.local/lib/python3.10/site-packages/starlette/middleware/exceptions.py”, line 79, incallraise excFile “/home/user/.local/lib/python3.10/site-packages/starlette/middleware/exceptions.py”, line 68, incallawait self.app(scope, receive, sender)File “/home/user/.local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py”, line 20, incallraise eFile “/home/user/.local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py”, line 17, incallawait self.app(scope, receive, send)File “/home/user/.local/lib/python3.10/site-packages/starlette/routing.py”, line 718, incallawait route.handle(scope, receive, send)File “/home/user/.local/lib/python3.10/site-packages/starlette/routing.py”, line 341, in handleawait self.app(scope, receive, send)File “/home/user/.local/lib/python3.10/site-packages/starlette/routing.py”, line 82, in appawait func(session)File “/home/user/.local/lib/python3.10/site-packages/fastapi/routing.py”, line 292, in appawait dependant.call(**values)File “/home/user/.local/lib/python3.10/site-packages/gradio/routes.py”, line 421, in join_queuesession_info = await websocket.receive_json()File “/home/user/.local/lib/python3.10/site-packages/starlette/websockets.py”, line 133, in receive_jsonself._raise_on_disconnect(message)File “/home/user/.local/lib/python3.10/site-packages/starlette/websockets.py”, line 105, in _raise_on_disconnectraise WebSocketDisconnect(message[“code”])starlette.websockets.WebSocketDisconnect: 1006