{"id":37136012,"url":"https://github.com/orijtech/wsu","last_synced_at":"2026-01-14T15:51:32.162Z","repository":{"id":57555520,"uuid":"102249089","full_name":"orijtech/wsu","owner":"orijtech","description":"Websockets Utilities","archived":false,"fork":false,"pushed_at":"2017-10-10T02:00:13.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T16:32:56.376Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orijtech.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}},"created_at":"2017-09-03T07:46:52.000Z","updated_at":"2020-06-06T08:30:40.000Z","dependencies_parsed_at":"2022-09-10T17:00:19.030Z","dependency_job_id":null,"html_url":"https://github.com/orijtech/wsu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/orijtech/wsu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orijtech%2Fwsu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orijtech%2Fwsu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orijtech%2Fwsu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orijtech%2Fwsu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orijtech","download_url":"https://codeload.github.com/orijtech/wsu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orijtech%2Fwsu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28425315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T15:24:48.085Z","status":"ssl_error","status_checked_at":"2026-01-14T15:23:41.940Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-01-14T15:51:31.348Z","updated_at":"2026-01-14T15:51:32.154Z","avatar_url":"https://github.com/orijtech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wsu [![Godoc](https://godoc.org/github.com/orijtech/wsu?status.svg)](https://godoc.org/github.com/orijtech/wsu)\nWebsockets Utilities\n\n## Client connection\nSample to get the latest 10000 Bitcoin-USD exchange events from GDAX/Coinbase\n```go\npackage main\n\nimport (\n        \"log\"\n\n        \"github.com/orijtech/wsu\"\n)\n\nfunc main() {\n        conn, err := wsu.NewClientConnection(\u0026wsu.ClientSetup{\n                URL: \"wss://ws-feed.gdax.com\",\n        })\n        if err != nil {\n                log.Fatal(err)\n        }\n        defer conn.Close()\n\n        conn.Send(\u0026wsu.Message{\n                Frame: []byte(`{\"type\": \"subscribe\", \"product_ids\": [\"BTC-USD\"]}`),\n        })\n\n        for i := 0; i \u003c 10000; i++ {\n                msg, ok := conn.Receive()\n                if !ok {\n                        break\n                }\n                log.Printf(\"#%d: TimeAt: (%v) Sequence #%d Frame: %s\", i, msg.TimeAt, msg.Sequence, msg.Frame)\n        }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forijtech%2Fwsu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forijtech%2Fwsu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forijtech%2Fwsu/lists"}