https://github.com/TyCoding/boot-chat
:bookmark: 基于SpringBoot + WebSocket的在线聊天系统,实现单窗口消息推送、群消息推送、上线提醒、Redis会话消息储存
https://github.com/TyCoding/boot-chat
Last synced: 4 months ago
JSON representation
:bookmark: 基于SpringBoot + WebSocket的在线聊天系统,实现单窗口消息推送、群消息推送、上线提醒、Redis会话消息储存
- Host: GitHub
- URL: https://github.com/TyCoding/boot-chat
- Owner: TyCoding
- Created: 2019-06-14T10:56:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-17T02:15:22.000Z (over 3 years ago)
- Last Synced: 2024-08-05T17:28:42.980Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://39.105.46.235:8087/
- Size: 3.55 MB
- Stars: 250
- Watchers: 3
- Forks: 82
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - TyCoding/boot-chat - :bookmark: 基于SpringBoot + WebSocket的在线聊天系统,实现单窗口消息推送、群消息推送、上线提醒、Redis会话消息储存 (JavaScript)
README
# 基于SpringBoot + WebSocket + Vue实现在线聊天系统
**线上地址**
[Chat](http://39.105.46.235:8087/)
**欢迎star、fork支持**
## 介绍
本仓库中包含了两个子项目:
* [session-chat](https://github.com/TyCoding/boot-chat/tree/master/session-chat) 基于HTTPSession实现会话消息储存,受限于不同浏览器Session不能共享导致的数据丢失(如果使用同一浏览器测试则不会出现问题)
* [redis-chat](https://github.com/TyCoding/boot-chat/tree/master/redis-chat) 基于Redis实现会话消息储存,会话数据不会丢失,并使用定时任务,定时清除Redis中注册时间过长的用户数据以及其会话消息
## 文档
更多文档将在我的公众号 **程序员涂陌** 中陆续发布,请持续关注!
| 程序员涂陌 |
| ----------------------------------------------------------- |
|  |
## 捐赠
| Alipay | WechatPay |
| ---------------------------------------------------------- | ---------------------------------------------------------- |
|  |  |
## 写在前面
本仓库中包含的是两个项目:
* 如果使用 [session-chat](https://github.com/TyCoding/boot-chat/tree/master/session-chat) 项目,则开箱即用
* 如果使用 [redis-chat](https://github.com/TyCoding/boot-chat/tree/master/redis-chat) 项目,启动前需要配置好本地Redis环境才可。
**注意** 由于WebSocket限制,HTML与服务端通信,需要保证WebSocket链接的IP和浏览器访问的IP项目,如果是localhost就都是localhost,如果是127.0.0.1就都改为127.0.0.1,否则可能消息推送失败。
## 联系
QQ交流群:671017003
- [Blog@TyCoding's blog](http://www.tycoding.cn)
- [GitHub@TyCoding](https://github.com/TyCoding)
- [ZhiHu@TyCoding](https://www.zhihu.com/people/tomo-83-82/activities)