public static interface MessageClient.RpcService
Known Indirect Subclasses |
Used with
MessageClient.addRpcService(MessageClient.RpcService, String)
to receive incoming
RPC requests.
Callers wishing to be notified of events in the background should user WearableListenerService
.
Public Method Summary
abstract Task<byte[]> |
Public Methods
public abstract Task<byte[]> onRequest (String nodeId, String path, byte[] request)
Called when an RPC request is received.
Parameters
nodeId | node ID of the sender |
---|---|
path | the path at which the RPC request was received |
request | the data associated with the RPC request |
Returns
- a future containing the response to be delivered back to the sender. null if the
request is not handled by this
MessageClient.RpcService
.