web消息推送实例,springsocket 需求:用户登陆后,如果后台在监控数据时发现告警后,把告警消息入库,查找出用户未读消息,和全部消息,主动向页面推送,页面表现形式是:右上部有个铃铛图标,有未读消息时,铃铛上部有红点,点击铃铛,弹出列表,滚动条向下滑形式,最新消息在前面。刷新重载此逻辑。
1、后台事件触发->向所有的前端客户端发送消息(ok)
2、根据用户信息向不同的用户发消息(消息本身,未读消息数),建立用户和消息表,已读未读.
3、后端掉线重连
This project forked from helloejk/msg-push
web消息推送实例,springsocket 需求:用户登陆后,如果后台在监控数据时发现告警后,把告警消息入库,查找出用户未读消息,和全部消息,主动向页面推送,页面表现形式是:右上部有个铃铛图标,有未读消息时,铃铛上部有红点,点击铃铛,弹出列表,滚动条向下滑形式,最新消息在前面。刷新重载此逻辑。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.