All Projects → zifangsky → Websocketdemo

zifangsky / Websocketdemo

在Spring Boot中使用WebSocket,示例包括简单模式、STOMP模式消息、处理对方不在线情况、分布式WebSocket等。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Websocketdemo

Spring Boot Start Current
Spring Boot 脚手架 Mybatis Spring Security JWT 权限 Spring Cache + Redis
Stars: ✭ 246 (+75.71%)
Mutual labels:  spring-boot, websocket, distributed
Java Spring Cloud
Distributed tracing for Spring Boot, Cloud and other Spring projects
Stars: ✭ 326 (+132.86%)
Mutual labels:  spring-boot, websocket
Mmorpg
springboot编写的轻量级高性能mmorpg手游服务端框架,基本功能逐渐完善中。
Stars: ✭ 309 (+120.71%)
Mutual labels:  spring-boot, websocket
Spring Boot Websocket Chat Demo
Spring Boot WebSocket Chat Demo with SockJS fallback and STOMP protocol
Stars: ✭ 726 (+418.57%)
Mutual labels:  spring-boot, websocket
Layim
基于HTML5 WebSocket的一款IM即时通讯软件,使用Gradle集成了Scala、SpringBoot、Spring MVC、Mybatis、Redis等,前端使用了LayIm框架
Stars: ✭ 218 (+55.71%)
Mutual labels:  spring-boot, websocket
Spring Boot Demo
Spring Boot & Spring Cloud & Spring Security Demo Case(Spring学习示例实战项目)
Stars: ✭ 255 (+82.14%)
Mutual labels:  spring-boot, websocket
Springboot Learning
🚕 spring boot学习案例,方便spring boot 初学者快速掌握相关知识
Stars: ✭ 724 (+417.14%)
Mutual labels:  spring-boot, websocket
Spring Boot Leaning
Spring Boot 2.X 最全课程代码
Stars: ✭ 2,008 (+1334.29%)
Mutual labels:  spring-boot, websocket
Subnode.org
SubNode: Social Media App
Stars: ✭ 25 (-82.14%)
Mutual labels:  spring-boot, distributed
Netty Websocket Spring Boot Starter
🚀 lightweight high-performance WebSocket framework ( 轻量级、高性能的WebSocket框架)
Stars: ✭ 885 (+532.14%)
Mutual labels:  spring-boot, websocket
Springboot Project
这是一个用SpringBoot+JPA打造的基于微信服务号平台的点餐系统的后端,前端是一个使用Vue.js构建的运行于微信公众号的WebApp。前后端完全分离,前后端之间通过RESTful风格的接口相连。
Stars: ✭ 1,034 (+638.57%)
Mutual labels:  spring-boot, websocket
Tutorial
Spring Boot的例子,包含RESTful API, MVC, JMS, Cache, Mybatis, Cache, Websocket...
Stars: ✭ 215 (+53.57%)
Mutual labels:  spring-boot, websocket
Webfluxtemplate
Spring Webflux template application with working Spring Security, Web-sockets, Rest, Web MVC, and Authentication with JWT.
Stars: ✭ 107 (-23.57%)
Mutual labels:  spring-boot, websocket
Atom
Java course materials
Stars: ✭ 293 (+109.29%)
Mutual labels:  spring-boot, websocket
Him Netty
开源的H5即时聊天系统 spring-boot + netty + protobuf + vue ~
Stars: ✭ 194 (+38.57%)
Mutual labels:  spring-boot, websocket
Dokit
基于 Spring Boot2、 Jpa、 Spring Security、JWT、redis、Vue的前后端分离的后台管理系统开发平台, 用户管理、菜单管理、角色管理、字典管理、权限控制的方式为RBAC,操作日志、异常日志、接口限流、项目支持数据权限管理,支持一键生成前后端代码(支持在线预览及打包下载),支持前端菜单动态路由 可一键部署服务器应用,数据库。系统中活跃用户状态监控,监视当前系统CPU、内存、磁盘、堆栈等相关信息,基于Element UI在线表单设计及生成Vue代码。
Stars: ✭ 348 (+148.57%)
Mutual labels:  spring-boot, websocket
Cookim
Distributed web chat application base websocket built on akka.
Stars: ✭ 198 (+41.43%)
Mutual labels:  websocket, distributed
Him Vue
开源的H5即时聊天系统 spring-boot + netty + protobuf + vue ~
Stars: ✭ 142 (+1.43%)
Mutual labels:  spring-boot, websocket
Javaquarkbbs
基于Spring Boot实现的一个简易的Java社区
Stars: ✭ 755 (+439.29%)
Mutual labels:  spring-boot, websocket
Jetlinks Community
JetLinks 基于Java8,Spring Boot 2.x ,WebFlux,Netty,Vert.x,Reactor等开发, 是一个全响应式的企业级物联网平台。支持统一物模型管理,多种设备,多种厂家,统一管理。统一设备连接管理,多协议适配(TCP,MQTT,UDP,CoAP,HTTP等),屏蔽网络编程复杂性,灵活接入不同厂家不同协议等设备。实时数据处理,设备告警,消息通知,数据转发。地理位置,数据可视化等。能帮助你快速建立物联网相关业务系统。
Stars: ✭ 2,405 (+1617.86%)
Mutual labels:  spring-boot, websocket

WebSocketDemo

项目介绍

在Spring Boot中使用WebSocket的Demo项目,这个示例包括简单模式、STOMP模式消息、处理对方不在线情况、分布式WebSocket等。

技术依赖

  • Spring Boot:项目基础架构
  • thymeleaf:用于构建测试页面模板
  • MyBatis:用于访问MySQL数据库,实现用户登录功能

环境依赖

  • JDK8+
  • MySQL5.7+
  • Redis集群

三个子项目说明

  • sample-websocket:最基础的demo项目,包含:使用Java提供的@ServerEndpoint注解实现WebSocket、使用Spring提供的低层级WebSocket API实现WebSocket
  • stomp-websocket:这个demo项目包含:使用STOMP消息实现WebSocket向指定用户发送WebSocket消息并处理对方不在线的情况等代码。
  • mq-websocket:这个demo项目包含:**使用消息队列实现分布式WebSocket**等代码

有关这个项目代码的详细开发思路,可以参考我的这三篇文章:

  1. Spring Boot中使用WebSocket总结(一):几种实现方式详解
  2. Spring Boot中使用WebSocket总结(二):向指定用户发送WebSocket消息并处理对方不在线的情况
  3. Spring Boot中使用WebSocket总结(三):使用消息队列实现分布式WebSocket
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].