Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receive and handle response from TLSPOutgoingRequest #20

Open
genericptr opened this issue Oct 4, 2022 · 0 comments
Open

Receive and handle response from TLSPOutgoingRequest #20

genericptr opened this issue Oct 4, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@genericptr
Copy link
Owner

Currently the JSON RPC package can't receive this messages so we would need to implement it ourself.

The response comes back like {"id":"_0","result":{"applied":true},"jsonrpc":"2.0"} where "id" is the value sent from TLSPOutgoingRequest and if we had a lookup table we could match the response to the request and invoke a handler.

  (*
    interface ResponseMessage extends Message {
      /**
       * The request id.
       */
      id: integer | string | null;

      /**
       * The result of a request. This member is REQUIRED on success.
       * This member MUST NOT exist if there was an error invoking the method.
       */
      result?: string | number | boolean | object | null;

      /**
       * The error object in case a request fails.
       */
      error?: ResponseError;
    }
  *)
@genericptr genericptr added the enhancement New feature or request label Oct 4, 2022
@genericptr genericptr self-assigned this Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant