Service
Index
Constructors
constructor
Methods
listen
Start and listen to incoming requests.
Returns Observable<ServiceRequest>
stop
Stop the service.
Returns void
staticget
Send a request to a Service and wait for a reply with a payload..
Parameters
service: string
the service id
payload: Object
the message payload
Returns Promise<Object>
a Promise wrapping the resulting value
staticobserve
Send a request to a Service and subscribe to notifications published from that service.
Parameters
service: string
the service id
context: Context
the context used to link its lifecycle to this subscription
optionalpayload: Object
the message payload, optional
Returns Observable<Object>
an Observable emitting notifications
staticpublish
Publish a message on the specified service without waiting for any acknowledge
Parameters
service: string
the service id
payload: Object
Returns Promise<void>
staticsend
Send a request to a Service and wait for an ack.
Parameters
service: string
the service id
optionalpayload: Object
the message payload, optional
Returns Promise<void>
a Promise that completes when the call has been executed
A service that processes requests coming from other VMs connected to the data cloud.