Dispatcher
- class compas.rpc.Dispatcher[source]
Bases:
object
Base class for remote services.
Examples
>>>
Notes
This object is used to dispatch API calls to the corresponding functions or methods. Since it is run on the server side, all errors are intercepted and their message strings assigned to the ‘error’ key of the output dictionary such that the errors can be rethrown on the client side.
Methods
on_module_imported
(module, newly_loaded_modules)Event triggered when a module is successfully imported.