{"id":20770555,"url":"https://github.com/ably/ably-go","last_synced_at":"2026-04-20T11:07:08.103Z","repository":{"id":23993880,"uuid":"27377399","full_name":"ably/ably-go","owner":"ably","description":"Go client library SDK for Ably realtime messaging service","archived":false,"fork":false,"pushed_at":"2026-04-20T09:44:00.000Z","size":4251,"stargazers_count":93,"open_issues_count":84,"forks_count":32,"subscribers_count":25,"default_branch":"main","last_synced_at":"2026-04-20T10:15:20.711Z","etag":null,"topics":["client-library","go","golang","realtime","realtime-messaging","rest","sdk"],"latest_commit_sha":null,"homepage":"https://ably.com/download","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/ably.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":"MAINTAINERS.md","copyright":"COPYRIGHT","agents":null,"dco":null,"cla":null}},"created_at":"2014-12-01T11:57:59.000Z","updated_at":"2026-04-20T09:41:54.000Z","dependencies_parsed_at":"2026-04-02T01:12:08.241Z","dependency_job_id":null,"html_url":"https://github.com/ably/ably-go","commit_stats":null,"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"purl":"pkg:github/ably/ably-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ably%2Fably-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ably%2Fably-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ably%2Fably-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ably%2Fably-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ably","download_url":"https://codeload.github.com/ably/ably-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ably%2Fably-go/sbom","scorecard":{"id":161263,"data":{"date":"2025-08-11","repo":{"name":"github.com/ably/ably-go","commit":"46b1186e6ba46be2fd95d8f80278e15436c573d5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6,"checks":[{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"12 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'deployments' permission set to 'write': .github/workflows/docs.yml:14","Warn: no topLevel permission defined: .github/workflows/check.yml:1","Warn: no topLevel permission defined: .github/workflows/docs.yml:1","Warn: no topLevel permission defined: .github/workflows/features.yml:1","Warn: no topLevel permission defined: .github/workflows/integration-test.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/ably/ably-go/check.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/ably/ably-go/check.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/ably/ably-go/check.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/ably/ably-go/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/ably/ably-go/docs.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docs.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/ably/ably-go/docs.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docs.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/ably/ably-go/docs.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docs.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/ably/ably-go/docs.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/features.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/ably/ably-go/features.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integration-test.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/ably/ably-go/integration-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integration-test.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/ably/ably-go/integration-test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/integration-test.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/ably/ably-go/integration-test.yml/main?enable=pin","Warn: goCommand not pinned by hash: .github/workflows/check.yml:44","Warn: goCommand not pinned by hash: .github/workflows/integration-test.yml:33","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 third-party GitHubAction dependencies pinned","Info:   4 out of   6 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0603 / GHSA-hp87-p4gw-j4gq"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T13:30:34.590Z","repository_id":23993880,"created_at":"2025-08-16T13:30:34.590Z","updated_at":"2025-08-16T13:30:34.590Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32044315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T10:33:29.490Z","status":"ssl_error","status_checked_at":"2026-04-20T10:32:30.107Z","response_time":94,"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":["client-library","go","golang","realtime","realtime-messaging","rest","sdk"],"created_at":"2024-11-17T12:10:20.541Z","updated_at":"2026-04-20T11:07:08.093Z","avatar_url":"https://github.com/ably.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Ably Pub/Sub Go Header](/image/goSDK-github.png)\n[![Go Reference](https://pkg.go.dev/badge/github.com/ably/ably-go/ably.svg)](https://pkg.go.dev/github.com/ably/ably-go/ably)\n[![License](https://badgen.net/github/license/ably/ably-go)](https://github.com/ably/ably-go/blob/main/LICENSE)\n\n---\n\n# Ably Pub/Sub Go SDK\n\nBuild any realtime experience using Ably’s Pub/Sub Go SDK, supported on all popular platforms and frameworks.\n\nAbly Pub/Sub provides flexible APIs that deliver features such as pub-sub messaging, message history, presence, and push notifications. Utilizing Ably’s realtime messaging platform, applications benefit from its highly performant, reliable, and scalable infrastructure.\n\nFind out more:\n\n* [Ably Pub/Sub docs.](https://ably.com/docs/basics)\n* [Ably Pub/Sub examples.](https://ably.com/examples?product=pubsub)\n\n---\n\n## Getting started\n\nEverything you need to get started with Ably:\n\n* [Getting started in Pub/Sub using Go.](https://ably.com/docs/getting-started/go)\n* [SDK Setup for Go.](https://ably.com/docs/getting-started/setup?lang=go)\n\n---\n\n## Supported platforms\n\nAbly aims to support a wide range of platforms. If you experience any compatibility issues, open an issue in the repository or contact [Ably support](https://ably.com/support).\n\n\u003e [!IMPORTANT]\n\u003e Go SDK versions \u003c 1.2.14 will be [deprecated](https://ably.com/docs/platform/deprecate/protocol-v1) from November 1, 2025.\n\n---\n\n## Installation\n\nTo get started with your project, install the package:\n\n```bash\n~ $ go get -u github.com/ably/ably-go/ably\n```\n\n---\n\n## Usage\n\nThe following code connects to Ably's realtime messaging service, subscribes to a channel to receive messages, and publishes a test message to that same channel:\n\n```go\n// Initialize Ably Realtime client\nclient, err := ably.NewRealtime(\n        ably.WithKey(\"your-ably-api-key\"),\n        ably.WithClientID(\"me\"),\n\n// Wait for connection to be established\nch := make(chan ably.ConnectionStateChange, 1)\nclient.Connection.On(ably.ConnectionEventConnected, func(change ably.ConnectionStateChange) {\n        ch \u003c- change\n})\n\u003c-ch\nfmt.Println(\"Connected to Ably\")\n\n// Get a reference to the 'test-channel' channel\nchannel := client.Channels.Get(\"test-channel\")\n\n// Subscribe to all messages published to this channel\nchannel.SubscribeAll(context.Background(), func(msg *ably.Message) {\n        fmt.Printf(\"Received message: %s\\n\", msg.Data)\n})\n\n// Publish a test message to the channel\nchannel.Publish(context.Background(), \"test-event\", \"hello world\")\n\n}\n```\n\n---\n\n## Proxy\nThe `ably-go` SDK doesn't provide a direct option to set a proxy in its configuration. However, you can use standard environment variables to set up a proxy for all your HTTP and HTTPS connections. The Go programming language will automatically handle these settings.\n\n\u003cdetails\u003e\n\u003csummary\u003eSet up proxy via environment variables details.\u003c/summary\u003e\n\n\nTo configure the proxy, set the `HTTP_PROXY` and `HTTPS_PROXY` environment variables with the URL of your proxy server. Here's an example of how to set these variables:\n\n```bash\nexport HTTP_PROXY=http://proxy.example.com:8080\nexport HTTPS_PROXY=http://proxy.example.com:8080\n```\n\nThe `proxy.example.com` is the domain or IP address of your proxy server and `8080` is the port number of your proxy server.\n\n\nInclude the protocol (`http` or `https`) in the proxy URL. If your proxy requires authentication, you can include the username and password in the URL, for example: `http://username:password@proxy.example.com:8080`.\n\nAfter setting the environment variables, the `ably-go` SDK will route its traffic through the specified proxy for both Rest and Realtime clients.\n\nFor more details on environment variable configurations in Go, see [ Go documentation on http.ProxyFromEnvironment](https://golang.org/pkg/net/http/#ProxyFromEnvironment).\n\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003eSet up proxy via custom http client details.\u003c/summary\u003e\n\n\nFor Rest client, you can also set proxy by providing custom http client option `ably.WithHTTPClient`:\n\n```go\nably.WithHTTPClient(\u0026http.Client{\n        Transport: \u0026http.Transport{\n                Proxy:        proxy // custom proxy implementation\n        },\n})\n```\n\nConnection reliability is totally dependent on health of proxy server and ably will not be responsible for errors introduced by proxy server.\n\n\u003c/details\u003e\n\n---\n\n## Releases\n\nThe [CHANGELOG.md](./CHANGELOG.md) contains details of the latest releases for this SDK. You can also view all Ably releases on [changelog.ably.com](https://changelog.ably.com).\n\n---\n\n## Contributing\n\nRead the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines to contribute to Ably.\n\n---\n\n## Support, feedback and troubleshooting\n\nFor help or technical support, visit Ably's [support page](https://ably.com/support) or [GitHub Issues](https://github.com/ably/ably-go/issues) for community-reported bugs and discussions.\n\n---\n\n### Breaking API Changes in Version 1.2.x\n\nVersion 1.2 introduced significant breaking changes from 1.1.5. See the [Upgrade / Migration Guide](UPDATING.md) for details on what changes are required in your code.\n\n#### REST API\n\n- [Push notification target](https://ably.com/docs/account/app/notifications#push-notification-target) functionality is not applicable to this SDK.\n- No support for [Push Notifications Admin API.](https://ably.com/docs/api/rest-sdk/push-admin)\n\n#### Realtime API\n\n- Partial support for [Channel Suspended State.](https://github.com/ably/ably-go/issues/568)\n- Ping functionality is not implemented.\n- [Push notification target](https://ably.com/docs/account/app/notifications#push-notification-target) functionality is not applicable to this SDK.\n- No support for [Push Notifications Admin API.](https://ably.com/docs/api/realtime-sdk/push-admin)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fably%2Fably-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fably%2Fably-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fably%2Fably-go/lists"}