Code Monkey home page Code Monkey logo

lattic / msg-push Goto Github PK

View Code? Open in Web Editor NEW

This project forked from helloejk/msg-push

0.0 0.0 0.0 12 KB

web消息推送实例,springsocket 需求:用户登陆后,如果后台在监控数据时发现告警后,把告警消息入库,查找出用户未读消息,和全部消息,主动向页面推送,页面表现形式是:右上部有个铃铛图标,有未读消息时,铃铛上部有红点,点击铃铛,弹出列表,滚动条向下滑形式,最新消息在前面。刷新重载此逻辑。

JavaScript 16.93% Java 53.75% CSS 3.47% HTML 25.86%

msg-push's Introduction

msg-push

web消息推送实例,springsocket 需求:用户登陆后,如果后台在监控数据时发现告警后,把告警消息入库,查找出用户未读消息,和全部消息,主动向页面推送,页面表现形式是:右上部有个铃铛图标,有未读消息时,铃铛上部有红点,点击铃铛,弹出列表,滚动条向下滑形式,最新消息在前面。刷新重载此逻辑。

进度

1、后台事件触发->向所有的前端客户端发送消息(ok)

2、根据用户信息向不同的用户发消息(消息本身,未读消息数),建立用户和消息表,已读未读.

3、后端掉线重连

msg-push's People

Contributors

helloejk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.