json_rpc_2 icon indicating copy to clipboard operation
json_rpc_2 copied to clipboard

A Dart implementation of the JSON-RPC 2.0 spec.

Results 10 json_rpc_2 issues
Sort by recently updated
recently updated
newest added

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...

type-enhancement

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?

Use an inline function type instead

next-breaking-release

Hi, thanks for the wonderful library! I wonder whether it is mature enough and can be used in real production environments? Thanks!

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...