Class OmniRealtimeCallback
java.lang.Object
com.alibaba.dashscope.legacy_2x.audio.omni.OmniRealtimeCallback
Deprecated.
- Author:
- lengjiayi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidDeprecated.Will be called when the connection is closed.voidDeprecated.Will be called when the websocket connection fails, e.g. network disconnected, connect timeout, or other io exceptions.abstract voidonEvent(com.google.gson.JsonObject message) Deprecated.Will be called as soon as the server replies.voidonOpen()Deprecated.Will be called as soon as the connection is established, only for http stream request.
-
Constructor Details
-
OmniRealtimeCallback
public OmniRealtimeCallback()Deprecated.
-
-
Method Details
-
onOpen
public void onOpen()Deprecated.Will be called as soon as the connection is established, only for http stream request. -
onEvent
public abstract void onEvent(com.google.gson.JsonObject message) Deprecated.Will be called as soon as the server replies.- Parameters:
message- The message body in json.
-
onClose
Deprecated.Will be called when the connection is closed. -
onError
Deprecated.Will be called when the websocket connection fails, e.g. network disconnected, connect timeout, or other io exceptions. Default implementation does nothing, override it to be notified of such errors.- Parameters:
throwable- the exception that caused the failure.
-