{"id":25720003,"url":"https://github.com/gregwhitaker/rsocket-setupmetadata-example","last_synced_at":"2025-11-20T07:02:49.424Z","repository":{"id":82732631,"uuid":"234639804","full_name":"gregwhitaker/rsocket-setupmetadata-example","owner":"gregwhitaker","description":"Example of using connection setup metadata with RSocket","archived":false,"fork":false,"pushed_at":"2020-12-04T22:25:35.000Z","size":74,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T17:41:25.349Z","etag":null,"topics":["reactive","reactive-programming","reactive-streams","rsocket","rsocket-java","rsocket-metadata"],"latest_commit_sha":null,"homepage":"http://rsocket.io","language":"Java","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/gregwhitaker.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":"2020-01-17T21:28:33.000Z","updated_at":"2020-12-04T22:25:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"9936d22b-e234-4f9e-8722-df0b3df227f6","html_url":"https://github.com/gregwhitaker/rsocket-setupmetadata-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gregwhitaker/rsocket-setupmetadata-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Frsocket-setupmetadata-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Frsocket-setupmetadata-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Frsocket-setupmetadata-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Frsocket-setupmetadata-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregwhitaker","download_url":"https://codeload.github.com/gregwhitaker/rsocket-setupmetadata-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Frsocket-setupmetadata-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285389437,"owners_count":27163377,"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","status":"online","status_checked_at":"2025-11-20T02:00:05.334Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["reactive","reactive-programming","reactive-streams","rsocket","rsocket-java","rsocket-metadata"],"created_at":"2025-02-25T17:36:17.885Z","updated_at":"2025-11-20T07:02:49.414Z","avatar_url":"https://github.com/gregwhitaker.png","language":"Java","readme":"# rsocket-setupmetadata-example\n![Build](https://github.com/gregwhitaker/rsocket-setupmetadata-example/workflows/Build/badge.svg)\n\nAn example of sending metadata on connection setup with [RSocket](http://rsocket.io).\n\nIn this example the `hello-client` sends its \"clientId\" when setting up a connection to the `hello-service`. When the client\nrequests a hello message from the service it returns the message along with the client's identifier that it set during\nthe connection setup.\n\n## Building the Example\nRun the following command to build the example:\n\n    ./gradlew clean build\n    \n## Running the Example\nFollow the steps below to run the example:\n\n1. Run the following command to start the `hello-service`:\n\n        ./gradlew :hello-service:run\n        \n    If the service has started successfully you will see the following in the terminal:\n    \n        \u003e Task :hello-service:run\n        [main] INFO example.hello.service.HelloService - RSocket server started on port: 7000\n        \n2. In a new terminal, run the following command to send a request for a hello message with the `hello-client`:\n\n        ./gradlew :hello-client:run --args=Bob\n        \n   If successful, you will see that the client connected and specified its client identifier in the `hello-service` terminal:\n   \n        [reactor-tcp-nio-2] INFO example.hello.service.HelloService - Hello client connected: f538925a-c4be-41d5-93cf-f9250e3a8651\n        \n   and in the `hello-client` terminal you will see that the client id was sent back with the hello message:\n   \n       \u003e Task :hello-client:run\n       [main] INFO example.hello.client.HelloClient - Sending request for 'Bob'\n       [main] INFO example.hello.client.HelloClient - Response: Hello, Bob! [clientId: f538925a-c4be-41d5-93cf-f9250e3a8651]\n\n## Bugs and Feedback\nFor bugs, questions, and discussions please use the [Github Issues](https://github.com/gregwhitaker/rsocket-setupmetadata-example/issues).\n\n## License\nMIT License\n\nCopyright (c) 2020 Greg Whitaker\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Frsocket-setupmetadata-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregwhitaker%2Frsocket-setupmetadata-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Frsocket-setupmetadata-example/lists"}