Optional
Protected
Add a handler for all requests or responses, not just a specific request or response. Register a function to run before or after a specific request, response, or both.
Receives an id, not a command, because it needs to handle a response to a specific request
Add a handler for all requests or responses, not just a specific request or response. Register a function to run before or after a specific request, response, or both.