Support bi-directional JSON-RPC 2.0 #3
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Blocks
Depends on
#4 Add a backend for co-processes
p/json-rpc-shell
#7 Clean up HTTP and JSON-RPC parsing code
p/json-rpc-shell
Reference: p/json-rpc-shell#3
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. 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.