Set the message type.
Must be either 'rpc' or 'direct'.
Event response interface
This is the response received when dispatching messages via RPC or one-way direct messages.
add_response(string $package,string $class_name,string $method, $response)
Add a response
One RPC call can call methods without mltiple packages. This method is called after the RPC call is executed against any package, and adds the response from the package into the overall response object.
The package the response came from
The class name that was executed
The method name that was executed
get_response(string $package = ''): mixed
Get contents of the response, either a specific package, or all packages combined in an array.
Optional package alias to return response of. If blank, returns array of all responses from all packages.
Either response from a specific package if defined, or all responses.