-
public interface StreamClientListenerListener interface for Feeds socket events.
This interface defines methods to handle socket state changes and events. Implement this interface to receive updates about the socket connection state and incoming events.
-
-
Method Summary
Modifier and Type Method Description UnitonState(StreamConnectionState state)Called when the socket connection state changes. UnitonEvent(Object event)Called when a new event is received from the socket. UnitonError(Throwable err)Called when an error occurs on the client. UnitonRecovery(Recovery recovery)Called when a recovery decision is made. -
-
Method Detail
-
onState
Unit onState(StreamConnectionState state)
Called when the socket connection state changes.
- Parameters:
state- The new state of the WebSocket connection.
-
onEvent
Unit onEvent(Object event)
Called when a new event is received from the socket.
- Parameters:
event- The event received from the WebSocket.
-
onError
Unit onError(Throwable err)
Called when an error occurs on the client.
- Parameters:
err- The error that occurred.
-
onRecovery
Unit onRecovery(Recovery recovery)
Called when a recovery decision is made.
- Parameters:
recovery- The recovery decision.
-
-
-
-