Specification
Factor out the timeout middleware.
Tasks
-
- Move timeout middleware into js-rpc.
-
- Move the rpc request and response types to js-rpc. Replace the
ClientRPCRequestParams as an extension of the default request and response types. You can create a more specific subtype when using extends here. This applies also to AgentRPCRequestParams and associated.
-
- Timeout middleware must be applied to the agent service as well.