{"id":19166678,"url":"https://github.com/lmsail/go-zero-websocket","last_synced_at":"2025-04-09T17:11:27.479Z","repository":{"id":126047182,"uuid":"528272032","full_name":"lmsail/go-zero-websocket","owner":"lmsail","description":"基于go-zero框架，websocket 示例","archived":false,"fork":false,"pushed_at":"2024-04-21T07:07:23.000Z","size":328,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-09T17:11:11.475Z","etag":null,"topics":["chat","go-zero","im","websocket"],"latest_commit_sha":null,"homepage":"","language":"Go","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/lmsail.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":"2022-08-24T05:00:28.000Z","updated_at":"2024-12-23T09:05:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"26041e90-de55-408d-9186-02a6b662c029","html_url":"https://github.com/lmsail/go-zero-websocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmsail%2Fgo-zero-websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmsail%2Fgo-zero-websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmsail%2Fgo-zero-websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmsail%2Fgo-zero-websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lmsail","download_url":"https://codeload.github.com/lmsail/go-zero-websocket/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248074964,"owners_count":21043490,"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","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":["chat","go-zero","im","websocket"],"created_at":"2024-11-09T09:33:57.669Z","updated_at":"2025-04-09T17:11:27.461Z","avatar_url":"https://github.com/lmsail.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-zero-websocket\n\n基于`go-zero`框架，websocket 示例\n\n- 群发\n- 私聊\n- 连接加密\n- redis\n- mysql\n\n## 使用\n\n项目使用的是`go module`管理项目扩展，`go`版本`1.20`;\n加解密部分请参考根目录：test.go\n\n```\n// 拉取项目依赖\ngo mod tidy\n\n// 修改配置信息, redis 与 mysql 连接信息\n// 这里暂未使用到mysql\nwebsocket/etc/websocket-api.yaml\nRedis:\n  Host: 127.0.0.1:6379\n  Type: node\n  Pass:\n\n// 运行\ncd ./websocket \u0026\u0026  go run websocket.go\n\n// 访问 web 页面\nhttp://localhost:11111\n```\n\n## 效果预览\n\n\u003cimg src=\"https://raw.githubusercontent.com/lmsail/go-zero-websocket/main/preview/1.png\" /\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/lmsail/go-zero-websocket/main/preview/2.png\" /\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/lmsail/go-zero-websocket/main/preview/3.png\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmsail%2Fgo-zero-websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmsail%2Fgo-zero-websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmsail%2Fgo-zero-websocket/lists"}