Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

前端使用VUE,fetchEventSource 获取时,只有在SseEmitter 达到timeout时才会在 onmessage拿到数据,spring 5.x SseEmitter没有flush方法, 请问如何实现流式效果 #16

Closed
zhengb0 opened this issue Mar 31, 2023 · 4 comments

Comments

@zhengb0
Copy link

zhengb0 commented Mar 31, 2023

No description provided.

@Grt1228
Copy link
Owner

Grt1228 commented Apr 12, 2023

参考下代码中的OpneiAiSSEeventSource
@zhengb0

@Grt1228 Grt1228 closed this as completed Apr 12, 2023
@zyzsunny
Copy link

zyzsunny commented Aug 7, 2023

没有看到 OpneiAiSSEeventSource,我也有同样的问题,但我的vue用的是EventSourcePolyfill,只有 SSEEmitter.complete后,前台才收到消息

@Buenbk
Copy link

Buenbk commented May 8, 2024

没有看到 OpneiAiSSEeventSource,我也有同样的问题,但我的vue用的是EventSourcePolyfill,只有 SSEEmitter.complete后,前台才收到消息

我也是一样的,流式根本不生效,请问您解决了吗?

@Buenbk
Copy link

Buenbk commented May 8, 2024

No description provided.

请问您解决流式问题了吗?我也是使用fetchEventSource,也是流式无法生效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants