{"id":21932350,"url":"https://github.com/reneweb/link","last_synced_at":"2025-07-22T03:04:09.378Z","repository":{"id":18636011,"uuid":"21842309","full_name":"reneweb/Link","owner":"reneweb","description":"Link is a very simple PubSub protocol for finagle","archived":false,"fork":false,"pushed_at":"2014-08-09T23:51:55.000Z","size":284,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T13:14:35.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","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/reneweb.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":"2014-07-15T01:45:24.000Z","updated_at":"2014-07-25T14:43:33.000Z","dependencies_parsed_at":"2022-09-24T15:22:32.662Z","dependency_job_id":null,"html_url":"https://github.com/reneweb/Link","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reneweb/Link","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneweb%2FLink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneweb%2FLink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneweb%2FLink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneweb%2FLink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reneweb","download_url":"https://codeload.github.com/reneweb/Link/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneweb%2FLink/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266417032,"owners_count":23925300,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-11-28T23:18:21.277Z","updated_at":"2025-07-22T03:04:09.343Z","avatar_url":"https://github.com/reneweb.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"Link\n====\n\nLink is a **very** simple PubSub protocol for finagle.\n\n*Note: This is a work in progress*\n\n##### Dependency\n\nSBT\n\n```scala\nresolvers += \"com.github.reneweb\" at \"https://raw.githubusercontent.com/reneweb/mvn-repo/master\"\n\nlibraryDependencies ++= Seq(\n  \"com.github.reneweb\" %% \"link\" % \"0.1.2\"\n)\n```\n\n##### Usage\n\n```scala\n//Create the server... The service usually doesn't have to do anything, so just return the request as a future\nval server = Link.serve(\":1111\", new Service[PubSub, PubSub] {\n  override def apply(request: PubSub): Future[PubSub] = Future.value(request)\n})\n\n//Create a subscribe client... The subscription will block the connection, thus the service cannot be reused to send other requests\nval clientSub = Link.newClient(\"localhost:1111\").toService\nclientSub(Subscribe(\"/test/test\")) onSuccess {\n  case response: SubscribeResponse =\u003e {\n    response.out foreach println\n  }\n  case invalid =\u003e //Something went wrong\n}\n\n//...\n\n//Create a publish client\nval clientPub = Link.newClient(\"localhost:1111\").toService\nclientPub(new Publish(\"/test/test\", Left(\"Some Msg\")))\n\n//...\n\n//Closing the subscribe client will unsubscribe the client from the topic\nclientSub.close()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freneweb%2Flink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freneweb%2Flink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freneweb%2Flink/lists"}