{"id":20310865,"url":"https://github.com/progrium/cometcatchr","last_synced_at":"2025-08-31T14:34:18.447Z","repository":{"id":739311,"uuid":"389873","full_name":"progrium/cometcatchr","owner":"progrium","description":"An opinionated Comet client in Flash for Javascript","archived":false,"fork":false,"pushed_at":"2010-04-15T01:07:56.000Z","size":1508,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-24T01:59:19.817Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/progrium.png","metadata":{"files":{"readme":"README","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":"2009-11-30T05:48:53.000Z","updated_at":"2023-11-24T19:15:08.000Z","dependencies_parsed_at":"2022-07-18T12:48:02.758Z","dependency_job_id":null,"html_url":"https://github.com/progrium/cometcatchr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/progrium/cometcatchr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progrium%2Fcometcatchr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progrium%2Fcometcatchr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progrium%2Fcometcatchr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progrium%2Fcometcatchr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/progrium","download_url":"https://codeload.github.com/progrium/cometcatchr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progrium%2Fcometcatchr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272991767,"owners_count":25027490,"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-31T02:00:09.071Z","response_time":79,"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-14T17:34:49.838Z","updated_at":"2025-08-31T14:34:18.424Z","avatar_url":"https://github.com/progrium.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"CometCatchr\n===========\n\nAn opinionated Comet stream client in Flash to be used by Javascript.\n\nYou embed CometCatchr and specify a URL and a Javascript callback. It connects \nto the URL and listens for JSON data (expecting Transfer-Type: chunked). When \nit receives JSON, it parses it and passes it to you via your callback.\n\nUsing CometCatchr, you don't need to use complicated JS libraries and hacks \nfor cross-browser, cross-domain Comet support. It also doesn't rely on long-\npolling. It always uses a persistent socket connection.\n\nUsing CometCatcher\n==================\n\nJust embed it as you would any Flash, passing it these parameters:\n\n * url \t\t- Required. A URL to connect to.\n * callback - Required. A Javascript function to pass JSON to.\n * logger\t- Optional. A function to pass log/debug data to.\n * retry\t- Optional. Number of retries to attempt. Default: 3\n * policy\t- Optional. Explicit location of cross-domain policy file\n \n Example using Firebug console for callback and logger:\n \n \u003cembed src=\"bin-release/CometCatcher.swf?url=http://example.com/stream-provider\u0026callback=console.log\u0026logger=console.log\" \n \twidth=\"0\" \n \theight=\"0\" \n \tallowScriptAccess=\"sameDomain\"\n\ttype=\"application/x-shockwave-flash\"\n\tpluginspage=\"http://www.adobe.com/go/getflashplayer\"\u003e\n\u003c/embed\u003e  \n\nThis example ignores the common use of \u003cobject\u003e just to avoid redundancy.\n\nNotes\n=====\n\nYou need to host the SWF on the same domain as the HTML that embeds it. For \nlocal debugging, you need to run on localhost, not file:/// or it doesn't\nwork. It uses a Flash socket, so providing cross-domain policy is up to you.\n\nAlso, the server response this expects pretty much matches Twitter's\nstream API exactly. If they had a crossdomain.xml file or policy socket\nserver, you could just point CometCatcher right at one of their stream \nendpoints, like: http://user:pass@stream.twitter.com/1/statuses/sample.json\n\nAuthor\n======\n\nJeff Lindsay \u003cprogrium@gmail.com\u003e\n\nLicense\n=======\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrium%2Fcometcatchr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogrium%2Fcometcatchr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrium%2Fcometcatchr/lists"}