{"id":23379051,"url":"https://github.com/colevoss/gosock","last_synced_at":"2025-04-08T05:50:24.577Z","repository":{"id":195094397,"uuid":"691736710","full_name":"colevoss/gosock","owner":"colevoss","description":"Golang Websocket Framework","archived":false,"fork":false,"pushed_at":"2023-10-03T21:13:33.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T04:18:05.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/colevoss.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}},"created_at":"2023-09-14T19:28:03.000Z","updated_at":"2023-09-14T19:28:36.000Z","dependencies_parsed_at":"2023-09-16T13:54:48.783Z","dependency_job_id":null,"html_url":"https://github.com/colevoss/gosock","commit_stats":null,"previous_names":["colevoss/gosock"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colevoss%2Fgosock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colevoss%2Fgosock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colevoss%2Fgosock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colevoss%2Fgosock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colevoss","download_url":"https://codeload.github.com/colevoss/gosock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247785942,"owners_count":20995644,"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-12-21T19:16:19.305Z","updated_at":"2025-04-08T05:50:24.539Z","avatar_url":"https://github.com/colevoss.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gosock\n\nGosock is a channel based Websocket library built on top of [gobwas](https://github.com/gobwas/ws).\nThis project is in its early stages and not production ready.\n\n## Usage\n\nSee [Example](./examples/test/main.go)\n\n## Incoming Message\n\nIncoming messages should be shaped like so:\n\n```json\n{\n    \"channel\": \"channel.123.chat\",\n    \"event\": \"event-name\",\n    \"payload\": {\n        \"hello\": \"param\"\n    }\n}\n```\n\nOutgoing messages are shaped the same way.\n\n## Todo\n- [x] Fix channel names with ending params `channel.{id}`\n- [ ] Add more configuration for servers\n- [x] Close channel when last connection leaves\n- [ ] Figure out Producer based broadcast/emit\n- [ ] Recover from panics in pool\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolevoss%2Fgosock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolevoss%2Fgosock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolevoss%2Fgosock/lists"}