{"id":24992062,"url":"https://github.com/strophe/strophejs-plugin-roster","last_synced_at":"2025-07-14T03:39:55.300Z","repository":{"id":16479049,"uuid":"80017926","full_name":"strophe/strophejs-plugin-roster","owner":"strophe","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-03T13:43:29.000Z","size":34,"stargazers_count":2,"open_issues_count":1,"forks_count":7,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-06-15T15:54:39.142Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/strophe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-25T13:41:17.000Z","updated_at":"2021-12-03T13:34:36.000Z","dependencies_parsed_at":"2022-07-25T05:02:24.093Z","dependency_job_id":null,"html_url":"https://github.com/strophe/strophejs-plugin-roster","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/strophe/strophejs-plugin-roster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strophe%2Fstrophejs-plugin-roster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strophe%2Fstrophejs-plugin-roster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strophe%2Fstrophejs-plugin-roster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strophe%2Fstrophejs-plugin-roster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strophe","download_url":"https://codeload.github.com/strophe/strophejs-plugin-roster/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strophe%2Fstrophejs-plugin-roster/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265237771,"owners_count":23732519,"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":[],"created_at":"2025-02-04T13:53:40.514Z","updated_at":"2025-07-14T03:39:55.264Z","avatar_url":"https://github.com/strophe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# strophejs-plugin-roster\n\nstrophe.roster.js is a plugin to provide Roster Versioning\n([XEP-0237](https://xmpp.org/extensions/xep-0237.html)).\n\n## Install\n\n    npm install strophejs-plugin-roster\n\n\n## Usage\n\nMake sure you include [Strophe](https://www.npmjs.com/package/strophe.js) first.\n\nYou should first initialize and authorize the plugin, then you can subscribe to presence updates for the people in your roster.\n\n### Init connection\n\n    # `connection` is Strophe.Connection\n    connection.roster.init(connection)\n\n    var roster;\n    connection.roster.get(function (result) {\n      roster = result;\n    });\n\n### Subscribe to updates\n\n    # a jid from your roster\n    var jid = 'username@your_xmpp_server';\n\n    // Subscribe to updates for the given JID\n    connection.roster.subscribe(jid, 'Online', 'Nick');\n\n    // Authorize the given JID to get updates from you\n    connection.roster.authorize(jid, 'Online');\n\n### Update nick\n\n    connection.roster.update(jid, 'My Nick');\n\n\n## API\n\n### `.authorize(jid, message)`\n### `.subscribe(jid, message, nick)`\n### `.unsubscribe(jid, message)`\n### `.add(jid, name, groups, callback)`\n### `.update(jid, callback)`\n### `.remove(jid, callback)`\n### `.findItem(jid)`\n### `.removeItem(jid)`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrophe%2Fstrophejs-plugin-roster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrophe%2Fstrophejs-plugin-roster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrophe%2Fstrophejs-plugin-roster/lists"}