Interface FlowSseClient.SseEventHandler
- Enclosing class:
- FlowSseClient
public static interface FlowSseClient.SseEventHandler
Interface for handling SSE events and errors. Implementations can process received
events and handle any errors that occur during the SSE connection.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when an error occurs during the SSE connection.voidonEvent(FlowSseClient.SseEvent event) Called when an SSE event is received.
-
Method Details
-
onEvent
Called when an SSE event is received.- Parameters:
event- the received SSE event containing id, type, and data
-
onError
Called when an error occurs during the SSE connection.- Parameters:
error- the error that occurred
-