public interface CommunicatorEvents
| Modifier and Type | Method and Description |
|---|---|
void |
onCall(String id,
String action,
Object payload)
Handle call.
|
void |
onCallResult(String id,
String action,
Object payload)
Handle call result.
|
void |
onConnected()
A connection was established.
|
void |
onDisconnected()
The connection was disconnected.
|
void |
onError(String id,
String errorCode,
String errorDescription,
Object payload)
Handle call error.
|
void onCallResult(String id, String action, Object payload)
Hint: Use the id to identify the confirmation type, you can then choose to use the Communicators unpackPayload method.
id - unique id used to identify the original request.action - Optional. The action.payload - raw payload.void onCall(String id, String action, Object payload)
Hint: Use the action name to identify the request, you can then choose to use Communicators unpackPayload method.
id - unique id used to reply to server.action - action name used to identify the feature.payload - raw payload.void onError(String id, String errorCode, String errorDescription, Object payload)
Hint: Use the id to identify the original call. You can use Communicators
unpackPayload method.
id - unique id used to identify the original request.errorCode - short text to categorize the error.errorDescription - a longer text to describe the error.payload - Object payload attached to the error.void onDisconnected()
void onConnected()
Copyright © 2022. All rights reserved.