{"id":15282423,"url":"https://github.com/samuelagm/nativescript-xmpp-client","last_synced_at":"2025-10-12T02:15:10.520Z","repository":{"id":57308850,"uuid":"72284116","full_name":"samuelagm/nativescript-xmpp-client","owner":"samuelagm","description":"An XMPP websocket client for nativescript","archived":false,"fork":false,"pushed_at":"2023-03-03T05:19:48.000Z","size":2075,"stargazers_count":6,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T17:13:34.209Z","etag":null,"topics":["nativescript","xmpp","xmpp-websocket-client"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samuelagm.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-29T12:42:21.000Z","updated_at":"2024-05-30T16:26:25.000Z","dependencies_parsed_at":"2024-06-18T21:29:33.395Z","dependency_job_id":"81f254a8-52c7-47c4-a442-1680e7b37cd9","html_url":"https://github.com/samuelagm/nativescript-xmpp-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelagm%2Fnativescript-xmpp-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelagm%2Fnativescript-xmpp-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelagm%2Fnativescript-xmpp-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelagm%2Fnativescript-xmpp-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samuelagm","download_url":"https://codeload.github.com/samuelagm/nativescript-xmpp-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252802400,"owners_count":21806491,"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":["nativescript","xmpp","xmpp-websocket-client"],"created_at":"2024-09-30T14:25:53.946Z","updated_at":"2025-10-12T02:15:05.469Z","avatar_url":"https://github.com/samuelagm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nativescript-xmpp-client\n\n## Installation\n`tns install nativescript-xmpp-client`\n\n\n\n## Usage\n\n``` ts\nimport {Client, IQ} from \"nativescript-xmpp-client\";\n\n....\n   \n const client = new Client({\n    websocket: {url: 'ws://127.0.0.1:5280'},\n    jid: 'client2@127.0.0.1',\n    password: 'secret'\n });\n\n client.on('online', function (data) {\n    //Request roaster\n    client.send(new IQ({from: data.jid, type: 'get', id: 'rand'}).c('query', {xmlns: 'jabber:iq:roster'}));\n });\n\n client.on('stanza', function (stanza) {\n    console.log(stanza.root().toString());\n });\n\n client.on('error', function (error) {\n    console.log('client2', error)\n })\n\n```\n\n## Improvements\nPlease feel free to send in PRs, Thanks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelagm%2Fnativescript-xmpp-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuelagm%2Fnativescript-xmpp-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelagm%2Fnativescript-xmpp-client/lists"}