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

请问如何支持event-stream类型的响应 #529

Open
threepeples opened this issue Jan 26, 2024 · 1 comment
Open

请问如何支持event-stream类型的响应 #529

threepeples opened this issue Jan 26, 2024 · 1 comment

Comments

@threepeples
Copy link

需求是发起请求后服务器端每运算一段时间后会的得到一个数据,然后持续发送给前端,直到运算完成。想的是使用event-stream类型响应每次得到数据就传给前端,但是好像return body后通过stream输入body的数据也不会再传到前端了

@yanzhenjie
Copy link
Owner

目前暂时不支持event-stream,可以试试websocket,不过AndServer也支持websocekt,需要使用其他框架。

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

No branches or pull requests

2 participants