Open cpriest opened 6 years ago
There are 2 questions here:
I'm not familiar with the JSON-RPC spec, but based on the example in your main document, can we just add a namespace root-level parameter?
The spec is as linked in the document: https://en.wikipedia.org/wiki/JSON-RPC#Usage The reason to follow it is that there are tons of libraries for many languages which implement this way of talking, for example vscode-jsonrpc package: https://github.com/tzickel/lps-playground/blob/master/nodejs/pluginbridge.js#L55 Gives us with zero effort the ability to parse and handle this communication method.
Add a namespace field the JSON message to namespace the method calls.
For example, all messages from the specification might be "lp-spec.01"
This way: