{"id":17119181,"url":"https://github.com/regadas/dispatch-pusher","last_synced_at":"2026-07-02T02:31:47.493Z","repository":{"id":2050618,"uuid":"2988329","full_name":"regadas/dispatch-pusher","owner":"regadas","description":"Scala dispatch publishing library for Pusher","archived":false,"fork":false,"pushed_at":"2012-01-15T12:30:06.000Z","size":96,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T02:19:17.496Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/regadas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-12-15T15:10:49.000Z","updated_at":"2015-12-08T17:50:49.000Z","dependencies_parsed_at":"2022-08-29T02:40:47.036Z","dependency_job_id":null,"html_url":"https://github.com/regadas/dispatch-pusher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/regadas/dispatch-pusher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regadas%2Fdispatch-pusher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regadas%2Fdispatch-pusher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regadas%2Fdispatch-pusher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regadas%2Fdispatch-pusher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regadas","download_url":"https://codeload.github.com/regadas/dispatch-pusher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regadas%2Fdispatch-pusher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35030920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"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":[],"created_at":"2024-10-14T17:56:27.899Z","updated_at":"2026-07-02T02:31:47.469Z","avatar_url":"https://github.com/regadas.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"dispatch-pusher\n===============\n\nScala [dispatch](https://github.com/dispatch/dispatch) publishing library for [Pusher](http://pusher.com)\n\n## Usage\n\n * using [SBT](https://github.com/harrah/xsbt) on `build.scala` put the following:\n    \n    ```\n    resolvers ++= Seq(\"regadas repo\" at \"https://github.com/regadas/repo/raw/master\")\n\n    libraryDependencies += \"com.regadas\" %% \"dispatch-pusher\" % \"0.1\"\n    ```\n    \n * depends on [dispatch](https://github.com/dispatch/dispatch).\n    \n    ```\n    libraryDependencies += \"net.databinder\" %% \"dispatch-http\" % \"0.8.6\"\n    ```\n    \n * finally ... test example ...\n \n    ```scala\n    val vars = List(\"PUSHER_KEY\", \"PUSHER_SECRET\", \"PUSHER_APIID\")\n    val (key :: secret :: apiId :: Nil) = vars.map { v =\u003e Option(System.getenv(v)) }\n\n    key aka \"PUSHER_KEY env variable\" must beSome\n    secret aka \"PUSHER_SECRET env variable\" must beSome\n    apiId aka \"PUSHER_APIID env variable\" must beSome\n\n    //setting pusher credentials\n    val pusher = PusherRequest(key.get, secret.get)_\n    //specify\n    val channel = pusher(apiId.get, \"test_channel\")\n    //specify the event to trigger and the data to be sent ... socket id is optional\n    val pushToMyEvent: Request = channel(\"my_event\", \"hello world\", Some(\"1\"))\n    val pushToYourEvent: Request = channel(\"your_event\", \"hello world again\", None)\n\n    val http = new Http\n    val requests = List(pushToMyEvent, pushToYourEvent)\n    requests.map { req =\u003e\n      val status :Int = http(( req \u003e:\u003e identity) {\n        case (status, _, _, _) =\u003e status\n      })\n      status must_==202\n    }\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregadas%2Fdispatch-pusher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregadas%2Fdispatch-pusher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregadas%2Fdispatch-pusher/lists"}