基于node+vue—socket.io实现的即时聊天系统(聊天室,私聊,项目已完成,readme稍后更新)
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --reportFor a detailed explanation on how things work, check out the guide and docs for vue-loader.
- 实现聊天室 思路: 项目入口处随机生成用户名,与socket链接产生的socket.id绑定。由此作为用户区别标示,即可可实现基本聊天室功能。
- 实现私聊