Class Overview
class ServiceMessageBroker {
registerMethod
(methodName: string, signature: Array<Type<any>|SerializerTypes>, method: Function, returnType?: Type<any>|SerializerTypes) : void
}
Class Description
Helper class for UIComponents that allows components to register methods. If a registered method message is received from the broker on the worker, the UIMessageBroker deserializes its arguments and calls the registered method. If that method returns a promise, the UIMessageBroker returns the result to the worker.
Class Details
exported from platform-webworker/index, defined in platform-webworker/src/web_workers/shared/service_message_broker.ts