Class SseEventListener

java.lang.Object
okhttp3.sse.EventSourceListener
dev.langchain4j.mcp.client.transport.http.SseEventListener

public class SseEventListener extends okhttp3.sse.EventSourceListener
  • Constructor Details

  • Method Details

    • onClosed

      public void onClosed(okhttp3.sse.EventSource eventSource)
      Overrides:
      onClosed in class okhttp3.sse.EventSourceListener
    • onEvent

      public void onEvent(okhttp3.sse.EventSource eventSource, String id, String type, String data)
      Overrides:
      onEvent in class okhttp3.sse.EventSourceListener
    • onFailure

      public void onFailure(okhttp3.sse.EventSource eventSource, Throwable t, okhttp3.Response response)
      Overrides:
      onFailure in class okhttp3.sse.EventSourceListener
    • onOpen

      public void onOpen(okhttp3.sse.EventSource eventSource, okhttp3.Response response)
      Overrides:
      onOpen in class okhttp3.sse.EventSourceListener