okhttp-sse / okhttp3.sse / EventSource / Factory

Factory

interface Factory

Functions

Name Summary
newEventSource Creates a new event source and immediately returns it. Creating an event source initiates an asynchronous process to connect the socket. Once that succeeds or fails, listener will be notified. The caller must cancel the returned event source when it is no longer in use.abstract fun newEventSource(request: Request, listener:EventSourceListener):EventSource