| Package | Description | 
|---|---|
| jakarta.ws.rs.sse | 
 Server-Sent Events related API. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
SseBroadcaster.register(SseEventSink sseEventSink)
Register provided  
SseEventSink instance to this SseBroadcaster. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
SseBroadcaster.onClose(Consumer<SseEventSink> onClose)
Register a listener, which will be called when this SseBroadcaster closes a given event  
SseEventSink or
 tries to write to a given SseEventSink that is already closed (either by client closing the connection
 or by calling close() on the server side. | 
void | 
SseBroadcaster.onError(BiConsumer<SseEventSink,Throwable> onError)
Register a listener, which will be called when an exception is thrown by a given  
SseEventSink
 when this SseBroadcaster tries to write to it or close it. | 
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.