Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    RPCManager callback for non-error responses

    I'd like to post notifications to our users when a specific http status code is returned from the server. I know that RPCManager has handleTransportError which is great for httpResponseCodes that are errors but I'm not seeing anything for non-error codes. Is there something suitable for this?

    #2
    dsResponse/rpcResponse.httpResponseCode contains the return code, so you can access this at a lot of different points, including callbacks from methods like saveData() or centrally in DataSource.transformResponse().

    Comment


      #3
      but there is no central method available from RPCManager similar to handleTransportError?

      Comment


        #4
        No. The RPCManager is used for lots of different types of requests, some internal, some without callbacks, some parts of queues - it would take a massive amount of documentation just to explain the different types of requests and what would be valid to do, and we don't even have a known use case. In particular your use case, to the point that you've explained it, still seems better suited for DataSource.transformRequest/Response.

        Comment

        Working...
        X