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

前端第一次发送心跳后,websocket监听消息失效 #6210

Open
jackson03180824 opened this issue May 7, 2024 · 1 comment
Open

Comments

@jackson03180824
Copy link

版本号:JeecgBoot 3.6.3
分支: master
前端版本: vue3版
问题描述:

在前端发送第一次websocket心跳前,发送公告右上角的消息数量是会改变的,但是当第一次心跳发送后,后端会断开ws连接,之后马上再连接上,此时在发送公告,右上角的消息数量不会实时更新,相当于前端的onMessage方法无法监听到WebSocket消息了

截图&代码:
c051e0f8c35dbe3f29366030274fc51
@fireinjava
Copy link

参考这个,我发现还是很多人有websocket问题
jeecgboot/jeecgboot-vue3#1221

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

2 participants