when I use SSE (Server-Side Events) and ajax queries, I get ajax response only with the response of the event on the server. Is it possible to receive ajax responses regardless of SSE events?
1条回答
- csdnceshi62 2019-04-20 21:13关注
I found a solution to my problem on the site:
https://developer.hyvor.com/php/ajax-long-polling
specifically, it is:
Session data can't be used in long polling. If you do, it will completely freeze the browser tab. Other requests sent to the same domain won't load. Adding session_write_close() function at the top of the script can cancel the usage of sessions in the script.
解决 无用评论 打赏 举报
悬赏问题
- ¥17 pro*C预编译“闪回查询”报错SCN不能识别
- ¥15 微信会员卡接入微信支付商户号收款
- ¥15 如何获取烟草零售终端数据
- ¥15 数学建模招标中位数问题
- ¥15 phython路径名过长报错 不知道什么问题
- ¥15 深度学习中模型转换该怎么实现
- ¥15 HLs设计手写数字识别程序编译通不过
- ¥15 Stata外部命令安装问题求帮助!
- ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
- ¥15 TYPCE母转母,插入认方向