Dispatcher

class compas.rpc.Dispatcher[source]

Bases: object

Base class for remote services.

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

Event triggered when a module is successfully imported.