Skip to content

Commit

Permalink
params property is optional in JSON-RPC spec
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo committed Nov 19, 2024
1 parent 6d8486a commit d5476e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ async def process_message(self, app: RpcWebSocketApp, message: Any):
app.send_error(id_, JSONRPCError.METHOD_NOT_FOUND.value, "Method does not exist")
return

asyncio.ensure_future(self.process_method_call(app, id_, method, message["params"]))
asyncio.ensure_future(self.process_method_call(app, id_, method, message.get("params", [])))

async def process_method_call(self, app: RpcWebSocketApp, id_: Any, method: Method, params: list):
try:
Expand Down

0 comments on commit d5476e8

Please sign in to comment.