ServerSentEventReader

class ServerSentEventReader(source: BufferedSource, callback: ServerSentEventReader.Callback)

Constructors

Link copied to clipboard
constructor(source: BufferedSource, callback: ServerSentEventReader.Callback)

Types

Link copied to clipboard
interface Callback
Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Process the next event. This will result in a single call to Callback.onEvent unless the data section was empty. Any number of calls to Callback.onRetryChange may occur while processing an event.