{"id":21318713,"url":"https://github.com/jutaz/rpc-in-harmony","last_synced_at":"2025-03-15T22:14:44.736Z","repository":{"id":25175678,"uuid":"28598810","full_name":"jutaz/rpc-in-harmony","owner":"jutaz","description":"RPC for node.js based on --harmony features","archived":false,"fork":false,"pushed_at":"2015-01-04T21:44:21.000Z","size":192,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T11:12:39.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/jutaz.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":"2014-12-29T16:47:55.000Z","updated_at":"2015-01-04T21:44:21.000Z","dependencies_parsed_at":"2022-08-23T18:00:34.967Z","dependency_job_id":null,"html_url":"https://github.com/jutaz/rpc-in-harmony","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/jutaz%2Frpc-in-harmony","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jutaz%2Frpc-in-harmony/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jutaz%2Frpc-in-harmony/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jutaz%2Frpc-in-harmony/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jutaz","download_url":"https://codeload.github.com/jutaz/rpc-in-harmony/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243796741,"owners_count":20349264,"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-11-21T19:20:40.159Z","updated_at":"2025-03-15T22:14:44.714Z","avatar_url":"https://github.com/jutaz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"rpc-in-harmony\n==============\n\nRPC for node.js based on --harmony features\n\n#### Quick Example\n\nServer\n```js\nvar Server = require('./lib/server');\n\nvar server = new Server({\n\tfn: function (callback) {\n\t\tcallback('called');\n\t}\n}, {\n\tauth: function (str) {\n\t\tconsole.log(str); // Will output 'auth'\n\t\treturn true; // resolves or rejects auth\n\t}\n});\n\nserver.listen(3000);\n\nserver.on('client:connect', function (client) {\n\tclient.remote.test(function (test) {\n\t\tconsole.log(test); // Will output 'test'\n\t});\n\tsetTimeout(function () {\n\t\tclient.stop();\n\t}, 1000);\n});\n\n```\n\nClient\n```js\nvar Client = require('./lib/client');\n\nvar client = new Client({\n\ttest: function (callback) {\n\t\tcallback('test');\n\t}\n}, {\n\tport: 3000,\n\tauth: 'auth'\n});\n\nclient.on('connect', function (remote) {\n\tremote.fn(function (a) {\n\t\tconsole.log(a); // Will output 'Called'\n\t});\n});\n\nclient.on('disconnect', function () {\n\tconsole.log('Disconnected');\n});\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjutaz%2Frpc-in-harmony","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjutaz%2Frpc-in-harmony","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjutaz%2Frpc-in-harmony/lists"}