This project fork has been optimized and upgraded from general-chat. Thanks to the boss Genal for its open source ideas!
It is still time to continue to optimize, so stay tuned!!!
If you think it's pretty good, please click Star to encourage it!!!







front end
rear end
Socket.io
ElasticSearch ES search engine (used to robots for quick and automatic responses)
Nodejieba node version Chinese word segmenter

utf8bm64``utf8bm64``utf8bm64 !!! ) // windows系统需要配置一下,提交时转换为LF,检出时不转换
git config --global core.autocrlf input
// 设置为区分大小写
git config core.ignorecase false
// client
cd client
cnpm i
npm start // server
cd server
cnpm i
npm run start Deploy
Deploy chat rooms under CentOS
userId and username parameters are required. let chatUrl // 当前聊天室客户端地址
let userId // 当前系统用户userId
let username // 当前系统用户昵称
window . open ( ` ${ chatUrl } ?userId= ${ userId } &username= ${ username } ` ) ;The chat room obtains parameters and automatically completes login (if it is the first time you log in, you will automatically register an account)
Set the chat room client VUE_APP_ORG_URL to obtain the interface address of the organizational structure of the third-party system
// .env.xxx
// 此接口可以获取到第三方系统的所有部门和人员信息,注意为嵌套tree结构
VUE_APP_ORG_URL = http : / / 127.0 .0 .1 : 8080 / api / getDeptUsersTree // Contact.vue
axios . post ( process . env . VUE_APP_ORG_URL ) . then ( ( res ) => {
this . organizationArr = res . data . data ;
} ) ; interface node {
id: string ; // id
label: string ; // 名称
flag: boolean ; // 是否有下级结点
children: node [ ] ; // 下级结点
}VUE_APP_ORG_URL , and customize and modify it yourself in other situations. webSocket establishment process
@功能实现消息转发代码性能优化群聊功能继续完善微信快捷登陆Electron客户端检查更新