【文件属性】:
文件名称:chatio:telnet 和 web irc 克隆
文件大小:1.14MB
文件格式:ZIP
更新时间:2021-07-07 20:52:28
JavaScript
聊天
可以通过 telnet 和 http 连接的聊天服务器。
安装:
应用用途:
节点.js
Redis
socket.io
表示
# Clone the repo and run
npm install
node server.js # starts the telnet server
node index.js # starts the web server
可以在端口 8080 *问 Webapp。
http://localhost:8080
Telnet 到端口 9399 以通过 telnet 访问聊天。
telnet localhost 9399
部署:
我建议设置在服务器上运行应用程序。
测试:
用于此应用程序的单元测试。 并非所有东西都经过测试。
mocha test
去做:
进行更多单元测试
HTML 客户端有一些需要修复的错误
能够在多
【文件预览】:
chatio-master
----index.js(3KB)
----test.js(86B)
----package.json(280B)
----test()
--------test.js(1KB)
----server.js(5KB)
----index.html(1KB)
----users.js(25B)
----chat.js(8KB)
----.gitignore(537B)
----public()
--------css()
--------js()
--------font()
----README.md(839B)