public class ConsoleStreamListener extends AbstractStreamListener
lastMessage, onComplate| Constructor and Description |
|---|
ConsoleStreamListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onError(Throwable throwable,
String response)
Called when an error occurs.
|
void |
onMsg(String message)
Called when a new message is received.
|
onClosed, onEvent, onFailure, onOpenpublic void onMsg(String message)
AbstractStreamListeneronMsg in class AbstractStreamListenermessage - the new messagepublic void onError(Throwable throwable, String response)
AbstractStreamListeneronError in class AbstractStreamListenerthrowable - the throwable that caused the errorresponse - the response associated with the error, if anyCopyright © 2023. All rights reserved.