json_rpc_2
json_rpc_2 copied to clipboard
A Dart implementation of the JSON-RPC 2.0 spec.
I needed the ability to pass in a custom RPC id. It was easy to add, and doesn't affect the protocol's API in any way, just added functionality.
## Motivation While writing my flutter app's initialization / cleanup state, I found this. Currently `registerMethod` throws if same method name is registered already. ```dart void registerMethod(String name, Function callback)...
I'm not sure this is a good idea. But some clients will send `{method: '...', params: []}` when no parameters are given. So maybe it could be reasonable for the...
The JSON-RPC transport agnostic. The current implementation uses an auto-increment number (which always starts from zero) as the id value. This is appropriate for a point-to-point type transport (e.g. socket...
Hi. I am trying to use it with `shelf_web_socket`. ```dart webSocketHandler((webSocket){ var server = Server(websocket.cast()); }); ``` It throws an `HijackException`. Any solution?
Hi, thanks for the wonderful library! I wonder whether it is mature enough and can be used in real production environments? Thanks!
without typing it myself ? to have autocompletion
I have a flutter plugin that exposes itself over jsonrpc. The plugin is actually golang but exposes itself through the iOS and Android standard for a flutter method channel. So...