Package | Description |
---|---|
io.jooby |
Modifier and Type | Method and Description |
---|---|
default ServerSentEmitter |
ServerSentEmitter.attribute(String key,
Object value)
Set an application attribute.
|
ServerSentEmitter |
ServerSentEmitter.keepAlive(long timeInMillis)
Send a comment message to the client.
|
default ServerSentEmitter |
ServerSentEmitter.keepAlive(long time,
TimeUnit unit)
Send a comment message to the client.
|
default ServerSentEmitter |
ServerSentEmitter.send(byte[] data)
Send a text message to client.
|
default ServerSentEmitter |
ServerSentEmitter.send(Object data)
Send a text message to client.
|
ServerSentEmitter |
ServerSentEmitter.send(ServerSentMessage data)
Send a message to the client.
|
default ServerSentEmitter |
ServerSentEmitter.send(String data)
Send a text message to client.
|
default ServerSentEmitter |
ServerSentEmitter.send(String event,
Object data)
Send a message to the client and set the event type attribute.
|
ServerSentEmitter |
ServerSentEmitter.setId(String id)
Set Server-Sent ID.
|
Modifier and Type | Method and Description |
---|---|
void |
ServerSentEmitter.Handler.handle(ServerSentEmitter sse)
Callback with a readonly context and sse configurer.
|
Constructor and Description |
---|
KeepAlive(ServerSentEmitter emitter,
long retry) |
Copyright © 2020. All rights reserved.