diff --git a/src/snek/view/rpc.py b/src/snek/view/rpc.py index 4372e34..3e47bcd 100644 --- a/src/snek/view/rpc.py +++ b/src/snek/view/rpc.py @@ -129,11 +129,11 @@ class RPCView(BaseView): except Exception as ex: await self._send_json({"callId":call_id,"success":False,"data":str(ex)}) - async def _send_json(self,obj): - await self.ws.send_text(json.dumps(obj,default=str)) + async def _send_json(self,obj): + await self.ws.send_text(json.dumps(obj,default=str)) - async def call_ping(self,callId,*args): - return {"pong": args} + async def call_ping(self,callId,*args): + return {"pong": args} async def get(self):