Unbuffered.

This commit is contained in:
retoor 2025-01-31 12:51:47 +01:00
parent 0a70e80668
commit bfdfa6c8bb

View File

@ -129,11 +129,11 @@ class RPCView(BaseView):
except Exception as ex: except Exception as ex:
await self._send_json({"callId":call_id,"success":False,"data":str(ex)}) await self._send_json({"callId":call_id,"success":False,"data":str(ex)})
async def _send_json(self,obj): async def _send_json(self,obj):
await self.ws.send_text(json.dumps(obj,default=str)) await self.ws.send_text(json.dumps(obj,default=str))
async def call_ping(self,callId,*args): async def call_ping(self,callId,*args):
return {"pong": args} return {"pong": args}
async def get(self): async def get(self):