{"id":24302784,"url":"https://github.com/taigrr/socketio","last_synced_at":"2026-04-21T14:04:47.623Z","repository":{"id":180260908,"uuid":"633606554","full_name":"taigrr/socketio","owner":"taigrr","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-10T23:08:09.000Z","size":994,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T14:31:08.238Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taigrr.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":"2023-04-27T22:07:16.000Z","updated_at":"2023-04-27T22:07:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7153ce3-657a-4e4e-8ce5-601ee7546990","html_url":"https://github.com/taigrr/socketio","commit_stats":null,"previous_names":["taigrr/socketio"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/taigrr/socketio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fsocketio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fsocketio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fsocketio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fsocketio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taigrr","download_url":"https://codeload.github.com/taigrr/socketio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fsocketio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27522057,"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-12-05T02:00:07.920Z","response_time":54,"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":[],"created_at":"2025-01-17T00:19:22.409Z","updated_at":"2026-04-21T14:04:47.613Z","avatar_url":"https://github.com/taigrr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# socketio\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/taigrr/socketio.svg)](https://pkg.go.dev/github.com/taigrr/socketio)\n\nA Go (golang) implementation of [socket.io](https://socket.io), compatible with socket.io version 2.3.0.\nSupports rooms, namespaces, and real-time bidirectional browser-server communication.\n\nOriginally forked from [googollee/go-socket.io](https://github.com/googollee/go-socket.io) with\ndefect fixes, import cleanup, and dependency modernization.\n\n## Install\n\n```bash\ngo get github.com/taigrr/socketio\n```\n\n## Example\n\nSee the [examples/chat](./examples/chat) directory for a full working chat server.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n\n\t\"github.com/taigrr/socketio\"\n)\n\nfunc main() {\n\tserver, err := socketio.NewServer(nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tserver.On(\"connection\", func(so socketio.Socket) {\n\t\tfmt.Println(\"a user connected\")\n\t\tso.Join(\"chat\")\n\t\tso.On(\"chat message\", func(msg string) {\n\t\t\tfmt.Println(\"chat message:\", msg)\n\t\t\tso.BroadcastTo(\"chat\", \"chat message\", msg)\n\t\t})\n\t\tso.On(\"disconnect\", func() {\n\t\t\tfmt.Println(\"user disconnected\")\n\t\t})\n\t})\n\n\tserver.On(\"error\", func(so socketio.Socket, err error) {\n\t\tfmt.Printf(\"error: %s\\n\", err)\n\t})\n\n\thttp.Handle(\"/socket.io/\", server)\n\thttp.Handle(\"/\", http.FileServer(http.Dir(\"./asset\")))\n\tfmt.Println(\"serving on :9000\")\n\tlog.Fatal(http.ListenAndServe(\":9000\", nil))\n}\n```\n\n## License\n\n3-clause BSD — see [LICENSE](./LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaigrr%2Fsocketio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaigrr%2Fsocketio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaigrr%2Fsocketio/lists"}