{"id":24956926,"url":"https://github.com/andrewstuart/angularsocket","last_synced_at":"2026-02-16T00:33:17.019Z","repository":{"id":15313959,"uuid":"18043920","full_name":"andrewstuart/angularsocket","owner":"andrewstuart","description":"angularsocket","archived":false,"fork":false,"pushed_at":"2014-04-05T01:44:32.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T04:42:56.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/andrewstuart.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-03-23T21:24:06.000Z","updated_at":"2014-04-05T01:44:32.000Z","dependencies_parsed_at":"2022-08-25T20:20:57.033Z","dependency_job_id":null,"html_url":"https://github.com/andrewstuart/angularsocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrewstuart/angularsocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fangularsocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fangularsocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fangularsocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fangularsocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewstuart","download_url":"https://codeload.github.com/andrewstuart/angularsocket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fangularsocket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29495014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T00:16:34.147Z","status":"ssl_error","status_checked_at":"2026-02-16T00:15:26.759Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":"2025-02-03T06:41:39.593Z","updated_at":"2026-02-16T00:33:16.998Z","avatar_url":"https://github.com/andrewstuart.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"#AngularSocket\n\nA quick and dirty websocket wrapper for angular.  It gives some convenience methods for communicating with websockets from different services or controllers so that you can worry more about your implementation and less about how angular deals with sockets.\n\n##Methods\n\n##`.get(name, url)`\n\nThis method returns a wrapped websocket that will work without a call to $scope.$apply. \n\nThe `name` that is passed to the factory can be used at any point during the lifecycle of your application to retrieve the same socket instance, and thus does not need to constantly disconnect and reconnect with the server. The `url` is simply the endpoint url of your websocket server-side application.\n\nThe socket instance returned will have two methods: `emit(name, data)` and `on(event, handler)`.\n\n###`emit(name, data)`\n\n`emit` passes a named event to the server. This is similar to the socket.io functionality, but returns a promise will be fulfilled on confirmation or response from the server.\n\n###`on(event, handler)`\n\n`on` accepts an event name and a handler function that will be invoked when that named event is thrown by the server in the format `{event: \u003ceventName\u003e, data: { /*...data...*/ }}`. The handler will be passed any data sent by the server.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewstuart%2Fangularsocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewstuart%2Fangularsocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewstuart%2Fangularsocket/lists"}