{"id":21301981,"url":"https://github.com/liudding/pigeon","last_synced_at":"2025-07-11T00:03:27.472Z","repository":{"id":234575207,"uuid":"636199744","full_name":"liudding/pigeon","owner":"liudding","description":"A real-time messaging server built with SocketIO","archived":false,"fork":false,"pushed_at":"2023-07-13T06:07:53.000Z","size":256,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T18:52:02.147Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liudding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-05-04T10:24:55.000Z","updated_at":"2023-05-04T10:27:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"8fe5266f-2c64-466c-a505-83c44dd53f28","html_url":"https://github.com/liudding/pigeon","commit_stats":null,"previous_names":["liudding/pigeon"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liudding/pigeon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liudding%2Fpigeon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liudding%2Fpigeon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liudding%2Fpigeon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liudding%2Fpigeon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liudding","download_url":"https://codeload.github.com/liudding/pigeon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liudding%2Fpigeon/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264695808,"owners_count":23650930,"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":[],"created_at":"2024-11-21T15:54:06.416Z","updated_at":"2025-07-11T00:03:27.465Z","avatar_url":"https://github.com/liudding.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Socket \n\n\u003e Made with SocketIO\n\n本项目仅作为 WebSocket 的代理 broker，负责转发客户端与客户端、客户端与服务端之间的事件消息，不参与业务。\n\n### Channels\n\n* public channels\n* private channels\n* presence channels\n* state channels\n\n\n\u003cchannel\u003e:join, name\n\u003cchannel\u003e:leave, name\n\u003cchannel\u003e:xxx, {}\n\n\n\n### 事件\n事件分为系统事件和普通事件，\n#### 系统事件\n系统事件是 Socket 系统定义的事件，用来处理定义的应用协议（非 WebSocket 协议）。事件名称均为保留词，在定义普通事件时，需确保普通事件名称不能与系统事件重名。\n\n为了减少事件重名的概率，可为系统事件指定前缀，如指定前缀为 `chao`，则系统事件名称则形如 `chao:join_room`。\n\n事件列表：\n* join_room\n* join_room_succeeded\n* \n\n#### 普通事件\n普通事件，可以任意定义。\n\n\n\n### 事件发送\n\n方式：\n* 广播\n* 指定对象\n\n\n### Webhooks\n\n```json\n{\n  \"time_ms\": 1327078148132,\n  \"events\": [{ \"name\": \"event_name\", \"some\": \"data\" }]\n}\n```\n\n## Admin UI\n\nhttps://admin.socket.io/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliudding%2Fpigeon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliudding%2Fpigeon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliudding%2Fpigeon/lists"}