{"id":17325770,"url":"https://github.com/devfeel/longweb","last_synced_at":"2025-09-07T21:33:37.982Z","repository":{"id":81386763,"uuid":"81797920","full_name":"devfeel/longweb","owner":"devfeel","description":"Simple and easy go realtime-web gateway","archived":false,"fork":false,"pushed_at":"2018-11-05T05:18:29.000Z","size":2898,"stargazers_count":106,"open_issues_count":0,"forks_count":24,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-02T06:35:45.660Z","etag":null,"topics":["dotweb","go","longpoll","real-web","web","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/devfeel.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-13T07:39:01.000Z","updated_at":"2024-02-06T09:42:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9a58808-17d4-4577-abef-3e8ecabc7777","html_url":"https://github.com/devfeel/longweb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devfeel/longweb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfeel%2Flongweb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfeel%2Flongweb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfeel%2Flongweb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfeel%2Flongweb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devfeel","download_url":"https://codeload.github.com/devfeel/longweb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfeel%2Flongweb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264833288,"owners_count":23670617,"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":["dotweb","go","longpoll","real-web","web","websocket"],"created_at":"2024-10-15T14:14:16.868Z","updated_at":"2025-07-11T14:36:01.414Z","avatar_url":"https://github.com/devfeel.png","language":"Go","readme":"# LongWeb\nSimple and easy go realtime-web gateway\n\n[![GoDoc](https://godoc.org/github.com/devfeel/longweb?status.svg)](https://godoc.org/github.com/devfeel/longweb)\n[![Go Report Card](https://goreportcard.com/badge/github.com/devfeel/longweb)](https://goreportcard.com/report/github.com/devfeel/longweb)\n\n## 1. Install\n\n```\ngo get -u github.com/devfeel/longweb\n```\n\n## 2. Features\n* 支持Websocket\\longpoll，消灭浏览器兼容之痛\n* 支持http与https，ws与wss协议\n* 原有业务系统无痛接入\n* 支持公开与授权模式(token)\n* 支持配置化部署\n* 支持连接数据持久化，目前支持influxdb\n\n \n## 3. 主要文件说明\n* httpseerver/handlers/wshandler  处理websocket请求\n* httpseerver/handlers/pollhandler 处理长轮询请求（用于不支持websocket的访问端）\n* httpseerver/handlers/apihandler 处理与后端业务系统的交互\n \n* message/message 后端业务系统的消息接收、处理、推送\n* message/userclient 用户连接的抽象\n* message/usergroup 用户组别    \n* 其中三层：app-》group-》client\n \n## 4. 应用场景\n* 原有常规http系统需要支持websocket等长连接功能，无需开发改造，对接该网关轻松实现\n* 实时在线用户数统计系统\n* 聊天室类应用\n* 用户行为实时监测及反馈系统\n\n## 基于 github.com/devfeel/dotweb 实现\n\n## Contact Us\nQQ-Group：193409346\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevfeel%2Flongweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevfeel%2Flongweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevfeel%2Flongweb/lists"}