{"id":37164896,"url":"https://github.com/machinefi/w3bstream-client-go","last_synced_at":"2026-01-14T19:34:24.227Z","repository":{"id":185963617,"uuid":"674324768","full_name":"machinefi/w3bstream-client-go","owner":"machinefi","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-07T22:05:55.000Z","size":4776,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-12-17T09:46:51.948Z","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/machinefi.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,"governance":null}},"created_at":"2023-08-03T17:02:57.000Z","updated_at":"2023-08-05T01:28:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"27abb111-6b31-4916-b298-9d8548c49491","html_url":"https://github.com/machinefi/w3bstream-client-go","commit_stats":null,"previous_names":["machinefi/w3bstream-client-go"],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/machinefi/w3bstream-client-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machinefi%2Fw3bstream-client-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machinefi%2Fw3bstream-client-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machinefi%2Fw3bstream-client-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machinefi%2Fw3bstream-client-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/machinefi","download_url":"https://codeload.github.com/machinefi/w3bstream-client-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machinefi%2Fw3bstream-client-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28432632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","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-14T19:34:23.480Z","updated_at":"2026-01-14T19:34:24.220Z","avatar_url":"https://github.com/machinefi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# w3bstream-client-go\n\nThe Go Client for W3bstream integration on server\n\n## Getting started\n\nInstall `w3bstream-client-go` \n``` shell\ngo get \"github.com/machinefi/w3bstream-client-go\"\n```\n\n\n## Example Code\n\n### Publish Event Synchronously\n\n``` go\nimport (\n\t\"github.com/machinefi/w3bstream-client-go/client\"\n)\n\n// the http_route, project and api_key are obtained on W3bstream-Studio\ncli := NewClient(\"http_route\", \"api_key\")\n// defer cli.Close()\n\n// device_id is the identity for the device\n// payload can be an empty string if served as a heartbeat\nresp, err := cli.PublishEventSync(\n    \u0026Header{\n        DeviceID: \"device_id\",\n    },\n    []byte(\"payload\"),\n)\n```\n\n### Publish Event Asynchronously\n\n``` go\nimport (\n\t\"github.com/machinefi/w3bstream-client-go/client\"\n)\n\nerr := cli.PublishEvent(\n    \u0026Header{\n        DeviceID: \"id\",\n    },\n    []byte(\"payload\"),\n)\n```\n\n### Publish Event Asynchronously with Response Error Handler\n\n``` go\nimport (\n\t\"github.com/machinefi/w3bstream-client-go/client\"\n)\n\ncli := NewClient(\"http_route\", \"api_key\", WithErrHandler(func(err error) {\n    fmt.Println(err)\n}))\n\nerr := cli.PublishEvent(\n    \u0026Header{\n        DeviceID: \"id\",\n    },\n    []byte(\"payload\"),\n)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmachinefi%2Fw3bstream-client-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmachinefi%2Fw3bstream-client-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmachinefi%2Fw3bstream-client-go/lists"}