aiohttp-json-rpc
aiohttp-json-rpc copied to clipboard
Implements JSON-RPC 2.0 using aiohttp
This lets users pass in callables that don't have a `__name__` (like instances of `functools.partial`).
the snippet below ```python async def _ws_send_str(self, client, string): if client.ws._writer.transport.is_closing(): self.clients.remove(client) await client.ws.close() ``` cause the error below self.clients.remove(client) ValueError: list.remove(x): x not in list
Incase the user have big json data, the future will just through timeout error instead Of informing that user that actually the message size is exceeded, it would be Nice...
``` http_1 | Error handling request http_1 | invalid state http_1 | Traceback (most recent call last): http_1 | File "/usr/local/lib/python3.8/site-packages/aiohttp_json_rpc/client.py", line 100, in _handle_msgs http_1 | self._pending[msg.data['id']].set_result( http_1 |...
Hi. I am looking for a library to implement json-rpc api with aiohttp. This one looks nice but I need POST requests. Are you going to implement them in the...
JSON-RPC 2.0 spec: > 6 Batch > To send several Request objects at the same time, the Client MAY send an Array filled with Request objects. This currently (aiohttp-json-rpc 0.12.1)...
currently lib takes no actual care and does not really "knows" whatever connection is alive, also it has very poor interface to inform user of such problem. handling connection recovery...
May I know where the 'send_notification' method is defined in rpc.py line 256? ``` request.ws.send_notification(topic, self.state[topic]) ``` Thank you!
@fscherf hi, there's a few improvements to make, CI-wise: 1) Run tests against `master` on daily basis 2) Migrate integration into new platform travis-ci.com