Support bi-directional JSON-RPC 2.0
Openopened 3 years ago by p · 0 comments
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
This will allow us to properly toy around with LSP servers in the future, as well as with bi-directional WebSocket servers, however rare they are.
Not applicable to the HTTP(S) backend.
await_try_finish()needs to be rewritten to parse incoming messages and see if they are a valid response and that the "id" field, if any, corresponds to a pending request. If not, warn. If the message constitutes a request (which can be a notification), just display it with no means of responding to it.
process_response()needs to be refactored into a general parser/validator and a separate printer. Messages need processing before being elected as a matching response to a particular request.