{"id":30801572,"url":"https://github.com/implex-ltd/bridge","last_synced_at":"2026-04-18T13:31:27.066Z","repository":{"id":206855407,"uuid":"695831566","full_name":"Implex-ltd/bridge","owner":"Implex-ltd","description":"Make a bridge between tool using websocket protocol.","archived":false,"fork":false,"pushed_at":"2023-12-15T13:29:39.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-30T07:15:37.963Z","etag":null,"topics":["bridge","discord"],"latest_commit_sha":null,"homepage":"","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/Implex-ltd.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-09-24T11:13:48.000Z","updated_at":"2023-11-12T18:29:48.000Z","dependencies_parsed_at":"2023-11-12T20:38:04.828Z","dependency_job_id":null,"html_url":"https://github.com/Implex-ltd/bridge","commit_stats":null,"previous_names":["implex-ltd/bridge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Implex-ltd/bridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Implex-ltd%2Fbridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Implex-ltd%2Fbridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Implex-ltd%2Fbridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Implex-ltd%2Fbridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Implex-ltd","download_url":"https://codeload.github.com/Implex-ltd/bridge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Implex-ltd%2Fbridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273820794,"owners_count":25174124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"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":["bridge","discord"],"created_at":"2025-09-05T21:03:26.588Z","updated_at":"2026-04-18T13:31:27.058Z","avatar_url":"https://github.com/Implex-ltd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bridge\n\nMake a bridge between tool using websocket protocol.\n\n## Install\n```\ngo get -u github.com/Implex-ltd/bridge/bridge\n```\n\n## Example\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"time\"\n\n\t\"github.com/Implex-ltd/bridge/bridge\"\n)\n\nvar port = 1337\n\nfunc server() {\n\tS, err := bridge.NewServer(\"\", port, func(msg string) {\n\t\tlog.Printf(\"recv: %s\", msg)\n\n\t\tif msg == \"test 3\" {\n\t\t\tlog.Println(\"got test #3\")\n\t\t}\n\t})\n\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tlog.Println(\"openning..\")\n\tif err := S.Serve(); err != nil {\n\t\tpanic(err)\n\t}\n\n\tlog.Println(\"Server open\")\n}\n\nfunc client() {\n\tC, err := bridge.NewClient(\"localhost\", port)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfor _, str := range []string{\n\t\t\"test 1\",\n\t\t\"test 2\",\n\t\t\"test 3\",\n\t} {\n\t\tif err := C.PushData(str); err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t\ttime.Sleep(1 * time.Millisecond)\n\t}\n}\n\nfunc main() {\n\tgo server()\n\n\ttime.Sleep(1 * time.Second)\n\tclient()\n}\n\n/**\n    Expected output:\n        - 2023/09/24 16:01:30 openning..\n        - 2023/09/24 16:01:31 recv: test 1\n        - 2023/09/24 16:01:31 recv: test 2\n        - 2023/09/24 16:01:31 recv: test 3\n        - 2023/09/24 16:01:31 got test #3\n */\n   \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimplex-ltd%2Fbridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimplex-ltd%2Fbridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimplex-ltd%2Fbridge/lists"}