stw_chat:NodeJS 聊天示例-源码

上传者: 42109178 | 上传时间: 2021-07-13 16:05:07 | 文件大小: 1.16MB | 文件类型: ZIP
STW 聊天 只是另一个基于 socket.io 的节点聊天。 对我来说,再次使用 node 是一个很好的例子。 安装 git clone [git-repo-url] stw_chat cd stw_chat npm install npm run-script seed cd public && bower install npm start 转到 笔记 我试图让所有通常不属于聊天的查询都由 express 应用程序处理。 所以所有这些请求都是通过 HTTP 请求完成的。 而聊天相关的请求是通过 socket.emit() 完成的。

文件下载

资源详情

[{"title":"( 39 个子文件 1.16MB ) stw_chat:NodeJS 聊天示例-源码","children":[{"title":"stw_chat-master","children":[{"title":"public","children":[{"title":"index.html <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false},{"title":"images","children":[{"title":"avatars","children":[{"title":"jabba.jpg <span style='color:#111;'> 28.54KB </span>","children":null,"spread":false},{"title":"chewbacca.jpg <span style='color:#111;'> 56.05KB </span>","children":null,"spread":false},{"title":"c3po.png <span style='color:#111;'> 617.81KB </span>","children":null,"spread":false},{"title":"kenobi.png <span style='color:#111;'> 99.97KB </span>","children":null,"spread":false},{"title":"padme.jpg <span style='color:#111;'> 44.96KB </span>","children":null,"spread":false},{"title":"yoda.jpg <span style='color:#111;'> 57.74KB </span>","children":null,"spread":false},{"title":"anakin.jpg <span style='color:#111;'> 23.58KB </span>","children":null,"spread":false},{"title":"jabba.png <span style='color:#111;'> 89.59KB </span>","children":null,"spread":false},{"title":"r2d2.jpg <span style='color:#111;'> 154.64KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"jst","children":[{"title":"chat","children":[{"title":"index.html <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"message.html <span style='color:#111;'> 461B </span>","children":null,"spread":false},{"title":"dialog.html <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"found_user.html <span style='color:#111;'> 507B </span>","children":null,"spread":false},{"title":"reply.html <span style='color:#111;'> 222B </span>","children":null,"spread":false}],"spread":true},{"title":"user","children":[{"title":"logged_in.html <span style='color:#111;'> 378B </span>","children":null,"spread":false},{"title":"choose.html <span style='color:#111;'> 201B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"js","children":[{"title":"chat.js <span style='color:#111;'> 10.20KB </span>","children":null,"spread":false},{"title":"main.js <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"templates.js <span style='color:#111;'> 6.42KB </span>","children":null,"spread":false}],"spread":true},{"title":"css","children":[{"title":"chat.css <span style='color:#111;'> 10.80KB </span>","children":null,"spread":false},{"title":"styles.css <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"server.js <span style='color:#111;'> 8.60KB </span>","children":null,"spread":false},{"title":"bower.json <span style='color:#111;'> 523B </span>","children":null,"spread":false},{"title":"Gruntfile.js <span style='color:#111;'> 4.27KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 566B </span>","children":null,"spread":false},{"title":".bowerrc <span style='color:#111;'> 46B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 43B </span>","children":null,"spread":false},{"title":"app","children":[{"title":"services","children":[{"title":"sorter.js <span style='color:#111;'> 848B </span>","children":null,"spread":false}],"spread":true},{"title":"models","children":[{"title":"chat.js <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"user.js <span style='color:#111;'> 2.53KB </span>","children":null,"spread":false},{"title":"chat_message.js <span style='color:#111;'> 361B </span>","children":null,"spread":false}],"spread":true},{"title":"config.json <span style='color:#111;'> 118B </span>","children":null,"spread":false},{"title":"config.local.json <span style='color:#111;'> 118B </span>","children":null,"spread":false},{"title":"routes","children":[{"title":"users.js <span style='color:#111;'> 466B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 398B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"bin","children":[{"title":"seed_data.js <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false}],"spread":true},{"title":"package.json <span style='color:#111;'> 918B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明