{"id":19257241,"url":"https://github.com/coinrust/wsconn","last_synced_at":"2026-01-24T18:02:18.946Z","repository":{"id":52413531,"uuid":"260595053","full_name":"coinrust/wsconn","owner":"coinrust","description":"wsconn is a websocket client based on gorilla/websocket that will automatically reconnect if the connection is dropped and keeps the connection alive.","archived":false,"fork":false,"pushed_at":"2021-04-29T21:31:11.000Z","size":13,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-21T15:41:02.772Z","etag":null,"topics":["gorilla","websocket","websocket-client","wsconn"],"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/coinrust.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":"2020-05-02T01:54:25.000Z","updated_at":"2020-05-06T11:41:44.000Z","dependencies_parsed_at":"2022-09-03T06:50:12.891Z","dependency_job_id":null,"html_url":"https://github.com/coinrust/wsconn","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/coinrust/wsconn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinrust%2Fwsconn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinrust%2Fwsconn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinrust%2Fwsconn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinrust%2Fwsconn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coinrust","download_url":"https://codeload.github.com/coinrust/wsconn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinrust%2Fwsconn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28733309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T17:51:25.893Z","status":"ssl_error","status_checked_at":"2026-01-24T17:50:48.377Z","response_time":89,"last_error":"SSL_read: 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":["gorilla","websocket","websocket-client","wsconn"],"created_at":"2024-11-09T19:09:12.096Z","updated_at":"2026-01-24T18:02:18.930Z","avatar_url":"https://github.com/coinrust.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wsconn\nwsconn is a websocket client based on gorilla/websocket that will automatically reconnect if the connection is dropped and keeps the connection alive.\n\n## Example\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/coinrust/wsconn\"\n\t\"log\"\n)\n\nfunc main() {\n\twsURL := \"wss://api.zb.live/websocket\"\n\tws := wsconn.NewWs(\n\t\twsconn.WsUrlOption(wsURL),\n\t\twsconn.WsDumpOption(true),\n\t\twsconn.WsAutoReconnectOption(true),\n\t\twsconn.WsMessageHandleFuncOption(func(bytes []byte) error {\n\t\t\tlog.Printf(\"%v\", string(bytes))\n\t\t\treturn nil\n\t\t}),\n\t\twsconn.WsErrorHandleFuncOption(func(err error) {\n\t\t\tlog.Printf(\"%v\", err)\n\t\t}),\n\t)\n\tch := fmt.Sprintf(\"%v_depth\", \"zbqc\") // zbqc_depth\n\tsub := map[string]string{\n\t\t\"event\":   \"addChannel\",\n\t\t\"channel\": ch,\n\t}\n\tws.Subscribe(sub)\n\n\tselect {}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoinrust%2Fwsconn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoinrust%2Fwsconn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoinrust%2Fwsconn/lists"}