{"id":20990243,"url":"https://github.com/shanamaid/websocket-express-webchat","last_synced_at":"2025-09-14T22:33:36.084Z","repository":{"id":94583422,"uuid":"81733645","full_name":"ShanaMaid/websocket-express-webchat","owner":"ShanaMaid","description":"【停止维护】基于websocket的一个简单的聊天室","archived":false,"fork":false,"pushed_at":"2017-06-28T07:50:14.000Z","size":244,"stargazers_count":36,"open_issues_count":0,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-14T19:44:59.746Z","etag":null,"topics":["angular","angularjs","express","nodejs","sokoban","webchat","websocket","websockets"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShanaMaid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-12T14:56:36.000Z","updated_at":"2024-07-01T12:49:43.000Z","dependencies_parsed_at":"2023-04-11T22:10:02.029Z","dependency_job_id":null,"html_url":"https://github.com/ShanaMaid/websocket-express-webchat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ShanaMaid/websocket-express-webchat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShanaMaid%2Fwebsocket-express-webchat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShanaMaid%2Fwebsocket-express-webchat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShanaMaid%2Fwebsocket-express-webchat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShanaMaid%2Fwebsocket-express-webchat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShanaMaid","download_url":"https://codeload.github.com/ShanaMaid/websocket-express-webchat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShanaMaid%2Fwebsocket-express-webchat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275179994,"owners_count":25419064,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angularjs","express","nodejs","sokoban","webchat","websocket","websockets"],"created_at":"2024-11-19T06:28:01.096Z","updated_at":"2025-09-14T22:33:36.071Z","avatar_url":"https://github.com/ShanaMaid.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# websocket-express-webchat\n基于websocket的一个简单的聊天室\nexpress+socket.io+animate.css+angular\n\n## Warning!\n请使用高版本nodejs，本项目包含部分ES6语法\n\n## Demo\n由于域名备案原因，不再提供在线版，请clone到本地使用\n\n## 使用方法\n* Step 1 下载本项目\n```\nhttps://github.com/ShanaMaid/websocket-express-webchat.git\n```\n\n* Step 2 安装依赖\n```\nnpm install \n```\n\n* Step 3 启动服务\n```\nnode app.js\n```\n\n* Step 4 进入聊天室\n```\n访问  http://localhost/\n```\n\n## config.json\n聊天室配置文件\n```\n{\n  \"history_num\":20,  //服务器缓存的历史信息条数\n  \"sever_port\":80,\t//服务器监听端口号\n  \"backup\":true,    //是否开启服务端信息备份\n  \"backup_filename\":\"./backup/example.json\"  //备份文件名字\n}\n```\n\n## 备份\n```\n[\n  {\n    \"name\":\"测试人员1\",\n    \"time\":\"2017-2-13  23:32:17\",\n    \"content\":\"一条简单的测试信息\"\n  },\n  {\n    \"name\":\"测试人2\",\n    \"time\":\"2017-2-13  23:33:42\",\n    \"content\":\"那你很棒哦\"\n  },\n  {\n    \"name\":\"测试人3\",\n    \"time\":\"2017-2-13  23:33:54\",\n    \"content\":\"肯定很棒哦\"\n  }\n]\n```\n\n## 功能\n- [x] 进入房间通知\n- [x] 离开房间通知\n- [x] 消息接收与发送\n- [x] 在线列表\n- [x] 服务器端信息备份\n\n## 版本更新记录\n* v1.0.3 聊天室在线人员显示错误，多人离线时会出现在线列表混乱。目前已修复\n* v1.0.2 聊天室历史加载记录，存在错误，已修复！\n* v1.0.1 服务器端信息备份\n* v1.0.0 即时聊天 \n\n## License\nsee [MIT LICENSE](./LICENSE) for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshanamaid%2Fwebsocket-express-webchat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshanamaid%2Fwebsocket-express-webchat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshanamaid%2Fwebsocket-express-webchat/lists"}