| Package | Description |
|---|---|
| org.noear.solon.web.sse |
| Modifier and Type | Field and Description |
|---|---|
protected Function<SseEvent,SseEvent> |
SseEmitter.onSendPost |
protected Function<SseEvent,SseEvent> |
SseEmitter.onSendPost |
| Modifier and Type | Method and Description |
|---|---|
SseEvent |
SseEvent.comment(String comment)
添加 SSE "comment" 行.
|
SseEvent |
SseEvent.data(Object object)
添加 SSE "data" 行.
|
SseEvent |
SseEvent.id(String id)
添加 SSE "id" 行.
|
SseEvent |
SseEvent.name(String name)
添加 SSE "event" 行.
|
SseEvent |
SseEvent.reconnectTime(long reconnectTimeMillis)
添加 SSE "retry" 行.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SseEmitter.send(SseEvent event)
发送事件
|
void |
SseEmitterHandler.send(SseEvent event)
发送事件内容
|
| Modifier and Type | Method and Description |
|---|---|
SseEmitter |
SseEmitter.onSendPost(Function<SseEvent,SseEvent> onSendPost)
发送确认方法
|
SseEmitter |
SseEmitter.onSendPost(Function<SseEvent,SseEvent> onSendPost)
发送确认方法
|
Copyright © 2025. All rights reserved.