【文件属性】:
文件名称:chat:node.js socket.io聊天
文件大小:47KB
文件格式:ZIP
更新时间:2021-05-10 18:02:37
JavaScript
TJ聊天
如何安装
创建配置文件
cp config.example.js config.js
安装依赖项
npm install
在config.js和public/iframe.html更改盐
在public/iframe.html和public/static/js/chat.js函数gotMessage() public/iframe.html域名更改为您的域名(默认为localhost:3000 )
开始聊天
node .
转到http://localhost:3000/iframe.html
【文件预览】:
chat-master
----.gitignore(22B)
----README.md(712B)
----public()
--------static()
--------iframe.html(7KB)
--------index.html(5KB)
----LICENSE(1KB)
----config.example.js(51B)
----package.json(654B)
----index.js(8KB)
----modules()
--------helper.js(2KB)
--------command.js(2KB)
--------room.js(2KB)