{"id":16625808,"url":"https://github.com/aleclarson/ddp","last_synced_at":"2025-08-23T03:10:48.367Z","repository":{"id":35780390,"uuid":"40060457","full_name":"aleclarson/ddp","owner":"aleclarson","description":"Meteor's latency-compensated distributed data client","archived":false,"fork":false,"pushed_at":"2018-12-05T16:55:24.000Z","size":85,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-13T04:07:23.154Z","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/aleclarson.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}},"created_at":"2015-08-01T21:24:25.000Z","updated_at":"2015-09-30T06:22:59.000Z","dependencies_parsed_at":"2022-09-17T12:21:54.840Z","dependency_job_id":null,"html_url":"https://github.com/aleclarson/ddp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fddp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fddp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fddp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fddp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aleclarson","download_url":"https://codeload.github.com/aleclarson/ddp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":220107093,"owners_count":16595503,"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":"2024-10-12T04:07:19.254Z","updated_at":"2024-10-17T16:49:07.413Z","avatar_url":"https://github.com/aleclarson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# ddp v1.2.0 [![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)\n\nThis package is stripped from [meteor/ddp](https://atmospherejs.com/meteor/ddp) and made compatible with [React Native](https://github.com/facebook/react-native).\n\n**Note:** This package is only for client-side usage.\n\n\u0026nbsp;\n\n## usage\n\n```js\nvar DDP = require('ddp');\n\nvar connection = DDP.connect('localhost:3000', {\n  heartbeatInterval: 17500, // Interval to send pings (in milliseconds)\n  heartbeatTimeout: 15000,  // Timeout to close the connection if a reply isnt received (in milliseconds)\n  onConnected: function () { /* ... */ },\n});\n\n// Subscribe to a record set.\nconnection.subscribe('subscriptionName', args..., {\n  onReady: function () { /* ... */ },\n  onStop: function () { /* ... */ },\n});\n\n// Invoke a method passing any number of arguments.\nconnection.call('methodName', args..., function (error, result) { /* onComplete */ });\nconnection.apply('methodName', args, function (error, result) { /* onComplete */ });\n```\n\nThis package also exposes:\n\n- `Meteor.connection`: This should be preferred over using `DDP.connect()`\n\n- `Meteor.DDP`\n\n- `DDP.randomStream()`\n\n- `DDP.stringify()`\n\n- `DDP.parse()`\n\n\u0026nbsp;\n\n## install\n\n```sh\nnpm install aleclarson/ddp#1.2.0\n```\n\n\u0026nbsp;\n\n## contributions\n\nPull requests are welcome, but should be against the `devel` branch.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleclarson%2Fddp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleclarson%2Fddp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleclarson%2Fddp/lists"}