{"id":20150832,"url":"https://github.com/adamgoose/angular-webdis","last_synced_at":"2025-08-02T01:43:03.490Z","repository":{"id":19900052,"uuid":"23165186","full_name":"adamgoose/angular-webdis","owner":"adamgoose","description":"Angular Service Provider for Interacting with the Redis PubSub System with Webdis","archived":false,"fork":false,"pushed_at":"2014-10-13T16:30:53.000Z","size":293,"stargazers_count":14,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-27T08:55:17.002Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/adamgoose.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":"2014-08-20T21:40:07.000Z","updated_at":"2024-05-10T00:41:29.000Z","dependencies_parsed_at":"2022-08-26T22:00:33.052Z","dependency_job_id":null,"html_url":"https://github.com/adamgoose/angular-webdis","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/adamgoose/angular-webdis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamgoose%2Fangular-webdis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamgoose%2Fangular-webdis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamgoose%2Fangular-webdis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamgoose%2Fangular-webdis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamgoose","download_url":"https://codeload.github.com/adamgoose/angular-webdis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamgoose%2Fangular-webdis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268326460,"owners_count":24232478,"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-08-01T02:00:08.611Z","response_time":67,"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-11-13T22:53:37.231Z","updated_at":"2025-08-02T01:43:03.432Z","avatar_url":"https://github.com/adamgoose.png","language":"JavaScript","readme":"# Angular-Webdis\n\nAngular-Webdis is an angular provider that allows you to subscribe to [Redis](http://redis.io/) [PubSub](http://redis.io/topics/pubsub) channels via [Webdis](http://webd.is/) using WebSockets.\n\n## Installation\n\nAngular-Webdis can be installed by either downloading `angular-webdis.min.js` from the `dist` directory in this repository, or with `bower install angular-webdis`.\n\n## Installing Webdis (Laravel Forge Users)\n\nLaravel Forge users can use the Laravel Forge Recipe at [ForgeRecipes.com](http://forgerecipes.com/recipes/22).\n\n## Configuration\n\nYou can configure the provider like so:\n\n```js\nmyApp = angular.module('my-app', ['adamgoose.webdis']);\n\nmyApp.config(['WebdisProvider', function(WebdisProvider)\n  {\n    // Your Webdis Host\n    WebdisProvider.setHost('example.com');\n\n    // Your Webdis Port (7379 by default)\n    WebdisProvider.setPort(7379);\n  }]);\n```\n\n### WebdisProvider.setHost(host)\n\nSets the host for the Webdis Requests\n\n- **host**: Your Webdis Host\n\n### WebdisProvider.setPort(port)\n\nSets the port for the Webdis Requests\n\n- **port**: Your Webdis Post (default 7379)\n\n## Usage\n\nTo subscribe to a channel, inject `Webdis` to your controllers, and use the provided methods (see below) to subscribe to channels.\n\n```js\napp.controller('DemoCtl', ['$scope', 'Webdis', function($scope, Webdis)\n{\n\n  Webdis.subscribe('my-channel', function(data, channel)\n    {\n      console.log('Message received on channel '+channel+': '+data);\n    }, $scope);\n\n}]);\n```\n\n## API\n\n### Webdis.subscribe(channel, callback, scope)\n\nSubscribe to a channel.\n\n- **channel**: Channel to subscribe to.\n- **callback**: Function to handle the callback. See below for more documentation.\n- **scope**: Pass in your scope, and we'll run `$scope.$apply()` after your callbacks for you.\n\n#### callback(message, channel)\n\nThe callback that handles messages sent to a particular subscribed channel.\n\n- **message**: JSON Object or String message data\n- **channel**: Channel on which the message was sent\n\n\u003e **Note**: If you do not pass your scope to the `.subscribe()` method, you will need to run `$scope.$apply()` in your callbacks if you make changes to your scope within the callback.\n\n## Contributing\n\nDo it nicely, please. :)\n\nBefore you commit, please run the following commands to build out the `dist` files.\n\n    npm install\n    gulp\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamgoose%2Fangular-webdis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamgoose%2Fangular-webdis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamgoose%2Fangular-webdis/lists"}