{"id":51562926,"url":"https://github.com/cookiengineer/gows","last_synced_at":"2026-07-10T12:01:42.306Z","repository":{"id":366214365,"uuid":"1274840372","full_name":"cookiengineer/gows","owner":"cookiengineer","description":":rocket: Pure Go WebSocket implementation","archived":false,"fork":false,"pushed_at":"2026-07-09T06:25:46.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-07-09T07:12:10.960Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cookiengineer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-20T00:25:57.000Z","updated_at":"2026-07-09T05:45:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cookiengineer/gows","commit_stats":null,"previous_names":["cookiengineer/gowebsocket","cookiengineer/gows"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cookiengineer/gows","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookiengineer%2Fgows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookiengineer%2Fgows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookiengineer%2Fgows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookiengineer%2Fgows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cookiengineer","download_url":"https://codeload.github.com/cookiengineer/gows/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookiengineer%2Fgows/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35330738,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-10T02:00:06.465Z","response_time":60,"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":"2026-07-10T12:01:41.455Z","updated_at":"2026-07-10T12:01:42.301Z","avatar_url":"https://github.com/cookiengineer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# gows\n\nMinimal RFC compliant WebSocket Version 13 implementation in Pure Go\nwith zero dependencies and with `net/http` compatibility.\n\n### Features\n\n- RFC 6455 compliant WebSocket 13 implementation\n- RFC 7602 compliant WebSocket Compression Extensions implementation\n\n## Usage\n\n### gows.Client\n\n```go\nimport \"github.com/cookiengineer/gows\"\nimport \"log\"\nimport \"time\"\n\nlogger := log.New(os.Stdout, \"[client] \", log.LstdFlags)\nclient, err0 := gows.NewClient(\"ws://localhost:8080\")\n\nif err0 == nil {\n\n    err1 := client.Connect()\n\n    if err1 == nil {\n\n        time.Sleep(100 * time.Millisecond)\n        client.Socket.Send([]byte(\"Hello, world!\"))\n\n        time.Sleep(1 * time.Second)\n        client.Socket.Close(gows.StatusGoingAway, \"Goodbye!\")\n\n    } else {\n        logger.Fatal(err1)\n    }\n\n} else {\n    logger.Fatal(err0)\n}\n```\n\n### gows.Server\n\n```go\nimport \"github.com/cookiengineer/gows\"\nimport \"log\"\n\nlogger := log.New(os.Stdout, \"[server] \", log.LstdFlags)\nserver := \u0026gows.Server{\n    Addr:    \":8080\",\n    Handler: func(websocket *gows.WebSocket) {\n\n        logger.Print(\"Client connected!\")\n\n        websocket.OnMessage = func(message []byte) {\n            logger.Printf(\"Received message: %s\", message)\n        }\n\n        websocket.OnClose = func() {\n            logger.Print(\"Client disconnected!\")\n        }\n\n    },\n    TLSConfig: nil,\n    ErrorLog:  logger,\n}\n\nserver.Listen()\n```\n\n\n## Examples\n\nCheck out the [examples](./examples) folder for further API usage examples.\n\n- [simple](./examples/simple) is a simple client and server.\n- [permessage-deflate](./examples/permessage-deflate) is a client and server that uses a websocket extension.\n- [chatserver](./examples/chatserver) is a fully integrated web chat server.\n\n\n## License\n\nThis library is licensed under the [X11/MIT License](./LICENSE.txt)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcookiengineer%2Fgows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcookiengineer%2Fgows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcookiengineer%2Fgows/lists"}