{"id":24884562,"url":"https://github.com/grmvoid/node-dispatcher","last_synced_at":"2025-03-27T09:43:21.961Z","repository":{"id":42705285,"uuid":"280406682","full_name":"grmvoid/node-dispatcher","owner":"grmvoid","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-01T08:51:06.000Z","size":502,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-01T14:35:22.176Z","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/grmvoid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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},"funding":{"github":"nulxrd"}},"created_at":"2020-07-17T11:26:57.000Z","updated_at":"2025-01-01T08:51:08.000Z","dependencies_parsed_at":"2024-01-15T21:11:12.025Z","dependency_job_id":"50b9281e-ebcf-486d-8f20-a2290b0c075f","html_url":"https://github.com/grmvoid/node-dispatcher","commit_stats":null,"previous_names":["macotsuu/dispatcher","nulldark/dispatcher","nuldark/dispatcher","nulxrd/dispatcher","sxbrsky/dispatcher","sxbrsky/node-dispatcher","grmvoid/node-dispatcher"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grmvoid%2Fnode-dispatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grmvoid%2Fnode-dispatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grmvoid%2Fnode-dispatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grmvoid%2Fnode-dispatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grmvoid","download_url":"https://codeload.github.com/grmvoid/node-dispatcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245821726,"owners_count":20678076,"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-01T14:29:32.633Z","updated_at":"2025-03-27T09:43:21.932Z","avatar_url":"https://github.com/grmvoid.png","language":"JavaScript","readme":"# Dispatcher\nA package for creating communication between microservices based on RabbitMQ.\n\n## Usage\n    (async () =\u003e {\n        const rpc = await require('./src')('amqp://localhost')\n\n        rpc.register('hello', user =\u003e `Hello ${user}`);\n        rpc.start();\n\n        rpc.call('hello', 'john).then(response =\u003e {\n            console.log(response);\n        });\n    })().catch(e =\u003e console.log(e))\n\n## Api reference\n    async call(handler: string, ...args: any[]) =\u003e Promise\u003cany\u003e\nEmit new request\n\n    register (event: string, callback: (...args: any[]) =\u003e any) =\u003e void\nRegister new callback\n\n    async start() =\u003e Promise\u003cvoid\u003e\nStart listen for new requests. Use this after register events.\n\n## Versioning\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/macotsuu/dispatcher/tags). \n\n## License\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","funding_links":["https://github.com/sponsors/nulxrd"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrmvoid%2Fnode-dispatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrmvoid%2Fnode-dispatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrmvoid%2Fnode-dispatcher/lists"}