{"id":17093765,"url":"https://github.com/izumi-kun/jquery-longpoll-client","last_synced_at":"2026-04-18T15:32:17.710Z","repository":{"id":57282214,"uuid":"80201380","full_name":"Izumi-kun/jquery-longpoll-client","owner":"Izumi-kun","description":"Simple client-side longpoll implementation","archived":false,"fork":false,"pushed_at":"2017-08-20T09:11:54.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T15:17:10.326Z","etag":null,"topics":["ajax","comet","javascript","jquery","jquery-longpoll-client"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Izumi-kun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-27T11:13:00.000Z","updated_at":"2018-07-04T01:05:53.000Z","dependencies_parsed_at":"2022-09-18T20:43:16.666Z","dependency_job_id":null,"html_url":"https://github.com/Izumi-kun/jquery-longpoll-client","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Izumi-kun%2Fjquery-longpoll-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Izumi-kun%2Fjquery-longpoll-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Izumi-kun%2Fjquery-longpoll-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Izumi-kun%2Fjquery-longpoll-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Izumi-kun","download_url":"https://codeload.github.com/Izumi-kun/jquery-longpoll-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245136323,"owners_count":20566584,"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","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":["ajax","comet","javascript","jquery","jquery-longpoll-client"],"created_at":"2024-10-14T14:08:16.304Z","updated_at":"2026-04-18T15:32:16.107Z","avatar_url":"https://github.com/Izumi-kun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jQuery LongPoll client script\n\nSimple client-side longpoll implementation.\n\n## Usage\n\n### Create\n\n```javascript\nvar config = {\n  url: '/url/to/polling',\n  params: {t: 1485714246},\n  callback: function (data) {\n    // your callback function\n    console.log(data);\n  }\n};\njQuery.longpoll.register('myId', config).start();\n```\n\nThe server should return JSON data in follow structure:\n\n```json\n{\n  \"params\": {\"t\": 1485714250}, \n  \"data\": \"any kind of data will be passed to callback function\"\n}\n```\n\n### Stop\n\n```javascript\njQuery.longpoll.get('myId').stop();\n```\n\n### Destroy\n\n```javascript\njQuery.longpoll.destroy('myId');\n```\n\nLicense\n-------\nBSD-3-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizumi-kun%2Fjquery-longpoll-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fizumi-kun%2Fjquery-longpoll-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizumi-kun%2Fjquery-longpoll-client/lists"}