Creates an instance of NopeRpcManager.
The Options, used by the rpc-manager.
helper to generate an nope observable. might be used to replace the default observable.
Default selector see performCall
Optional
_id: string = nullA Provided a for the rpc-manager
Optional
_connectivityManager: INopeConnectivityManager = nullA INopeConnectivityManager used to listen for new and dead dispatchers
Proxy for accessing the Methods. This proxy provides additional options, which can be used to detail the calls.
M.Karkowski
NopeRpcManager
Rest
...args: anyProxy for accessing the Methods. This proxy provides additional options, which can be used to detail the calls.
M.Karkowski
NopeRpcManager
Rest
...args: anyReadonly
onAn event Emitter, which will be called when a task is getting canceled.
M.Karkowski
NopeRpcManager
The Options, used by the rpc-manager.
Readonly
readyFlag to indicate, that the system is ready.
M.Karkowski
NopeRpcManager
Readonly
servicesElement showing the available services. Its more or less a map, that maps the services with their dispatchers.
OriginalKey
= Dispatcher ID (string
)OriginalValue
= Original Message (IAvailableServicesMsg
)ExtractedKey
= Function ID (string
);`ExtractedValue
= FunctionOptions (T
)M.Karkowski
INopeRpcManager
Function to cancel an indivual Task. This might be the case, if a connection to a specific dispatcher is lost or might have a user-based reason.
Flag, that indicates, whether cancelation was sucessfull or not.
nopeDispatcher
The Id of the Task. Which should be canceled.
The Reason, why the Task should be canceled (In general shoudl be something meaning full)
Function which is used to perform a call on the remote. Please see performCall for more Info.
Optional
options: ValidCallOptions | ValidCallOptions[]Function to register a Function in the Dispatcher
The registered Function
nopeDispatcher
The function which should be called if a request is mapped to the Function.
Rest
...args: any[]Options to enhance the registered ID and enabling unregistering the Element after calling it.
Helper to remove a dispatcher. This leads to closing all open task related to this dispatcher -> Exceptions should be thrown. Additional, internal task, requested by the dispatcher will be canceled.
M.Karkowski
NopeRpcManager
Describes the Data.
Function, which will be called, if an dispatcher is updated. This may leads to service that has been removed or added. This change emitted on see services
M.Karkowski
NopeRpcManager
The Update Message see IAvailableServicesMsg
Generated using TypeDoc
A Dispatcher to perform a function on a Remote Dispatcher. Therefore a Task is created and forwarded to the remote.
For a detailled description please checkout INopeRpcManager
Export