{"id":24992089,"url":"https://github.com/strophe/strophejs-plugin-archive","last_synced_at":"2026-02-04T16:04:18.917Z","repository":{"id":75691252,"uuid":"80018000","full_name":"strophe/strophejs-plugin-archive","owner":"strophe","description":null,"archived":false,"fork":false,"pushed_at":"2018-09-07T19:03:46.000Z","size":6,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":13,"default_branch":"archive","last_synced_at":"2025-07-02T15:50:30.776Z","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/strophe.png","metadata":{"files":{"readme":"README.markdown","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-01-25T13:42:07.000Z","updated_at":"2021-05-10T14:28:00.000Z","dependencies_parsed_at":"2023-05-03T23:31:00.926Z","dependency_job_id":null,"html_url":"https://github.com/strophe/strophejs-plugin-archive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/strophe/strophejs-plugin-archive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strophe%2Fstrophejs-plugin-archive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strophe%2Fstrophejs-plugin-archive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strophe%2Fstrophejs-plugin-archive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strophe%2Fstrophejs-plugin-archive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strophe","download_url":"https://codeload.github.com/strophe/strophejs-plugin-archive/tar.gz/refs/heads/archive","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strophe%2Fstrophejs-plugin-archive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29089916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T03:31:03.593Z","status":"ssl_error","status_checked_at":"2026-02-04T03:29:50.742Z","response_time":62,"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-04T13:53:43.900Z","updated_at":"2026-02-04T16:04:18.912Z","avatar_url":"https://github.com/strophe.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# strophe.archive.js\n\nstrophe.archive.js is a plugin to provide Message Archiving\n( [XEP-0136](http://xmpp.org/extensions/xep-0136.html) ).\n\n## Notes on Browser support\nIf you want to support Browsers which do not support setISO8601 on a Date-Object (like e.g. FF 11), include iso8601_support.js, too.\n\n## Usage\n\nMake sure you include Strophe.rsm as well as Strophe.archive\n\nInit Archive\n\n    # `connection` is Strophe.Connection\n    connection.archive.init(connection)\n\nRetrieve Archive\n\n    var jid = 'username@your_xmpp_server';\n\n    connection.listCollections(jid, null, function(collections, responseRsm) {\n        // Now you can iterate over the collections. Here we retrieve\n        // all the messages contained in each collection.\n        collections.forEach(function(collection) {\n            collection.retrieveMessages(function(null, function(messages) {\n                // Your callback here to process all the messages in this collection.\n            });\n        });\n    });\n\nRetrieve Archive with RSM\n\n    var cachedResponseRsm = null;\n\n    var jid = 'username@your_xmpp_server';\n\n    // Retrieve a max of 1 collections.\n    var rsm = new Strophe.RSM({max: 1});\n\n    // Fetch the first collection.\n    connection.listCollections(jid, rsm, function(firstCollection, firstRsm) {\n        // To demonstrate paging, we use the responseRsm to fetch the next collection.\n        var nextRsm = firstRsm.next();\n        connection.listCollections(jid, nextRsm, function(secondCollection, secondRsm) {\n            // Now we have access to the secondCollection here.\n        });\n    });\n\n## ToDo\n\n- write specs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrophe%2Fstrophejs-plugin-archive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrophe%2Fstrophejs-plugin-archive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrophe%2Fstrophejs-plugin-archive/lists"}