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
Comments
参考这个,我发现还是很多人有websocket问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本号:JeecgBoot 3.6.3
分支: master
前端版本: vue3版
问题描述:
在前端发送第一次websocket心跳前,发送公告右上角的消息数量是会改变的,但是当第一次心跳发送后,后端会断开ws连接,之后马上再连接上,此时在发送公告,右上角的消息数量不会实时更新,相当于前端的onMessage方法无法监听到WebSocket消息了
截图&代码:
The text was updated successfully, but these errors were encountered: