jsonrpc-c icon indicating copy to clipboard operation
jsonrpc-c copied to clipboard

jsonrpc-c support notification?

Open mathben opened this issue 12 years ago • 1 comments

Hi, can you answer me if jsonrpc-c support notification and how use it? Like this JSON-RPC v.2 : http://en.wikipedia.org/wiki/JSON-RPC#Version_2.0

Thanks

mathben avatar Feb 18 '13 22:02 mathben

It's not supported right now, an answer is always sent. But it's easy to implement: just check for the presence of an "id" field, and if absent, change the invoke_procedure() to NOT call send_result, just ignore whatever the procedure returned. I might look at it these days.

hmng avatar Feb 19 '13 12:02 hmng