EventSourceListener

Functions

Link copied to clipboard
abstract fun onClosed(eventSource: EventSource, t: Throwable?)

Invoked when an event source has been closed. Incoming events may have been lost. No further calls to this listener will be made.

Link copied to clipboard
abstract fun onEvent(eventSource: EventSource, event: Event)

Invoked when a new Event has been received.

Link copied to clipboard
abstract fun onOpen(eventSource: EventSource)

Invoked when an event source has been accepted by the remote peer and may begin transmitting events.