{"id":18559179,"url":"https://github.com/linux-china/rsocket-deno-service","last_synced_at":"2025-10-15T23:52:43.336Z","repository":{"id":136595886,"uuid":"271374697","full_name":"linux-china/rsocket-deno-service","owner":"linux-china","description":"RSocket Deno integration","archived":false,"fork":false,"pushed_at":"2020-06-10T20:13:30.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-14T07:17:07.439Z","etag":null,"topics":["deno","rsocket"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linux-china.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-06-10T20:09:10.000Z","updated_at":"2020-06-10T20:13:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"4514ae3f-c094-4a49-8d93-af2b9d7cf8d4","html_url":"https://github.com/linux-china/rsocket-deno-service","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/linux-china%2Frsocket-deno-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Frsocket-deno-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Frsocket-deno-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Frsocket-deno-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linux-china","download_url":"https://codeload.github.com/linux-china/rsocket-deno-service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254367403,"owners_count":22059500,"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":["deno","rsocket"],"created_at":"2024-11-06T21:42:14.152Z","updated_at":"2025-10-15T23:52:43.236Z","avatar_url":"https://github.com/linux-china.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Spring Boot RSocket Service for Deno\n====================================\n\n# Example usage\n\n* RSocket settings for application.properties :\n\n```properties\nspring.rsocket.server.mapping-path=/rsocket\nspring.rsocket.server.transport=websocket\n```\n\n* RSocket service controller:\n\n```java\n@Controller\n@MessageMapping(\"UserService\")\npublic class UserServiceController {\n\n    @MessageMapping(\"findById\")\n    public Mono\u003cUser\u003e findById(Integer id) {\n        return Mono.just(new User(1, \"linux_china\"));\n    }\n}\n```\n\n* Deno client\n\n```typescript\nimport {buildServiceStub, RSocketConnector} from \"https://deno.land/x/rsocket/mod.ts\"\nimport {Publisher, publisherToAsyncIterator} from \"https://deno.land/x/rsocket/reactivestreams/mod.ts\";\n\ntype User = {\n    id: number,\n    nick: string\n}\n\ninterface UserService {\n    findById(id: number): Promise\u003cUser\u003e;\n\n    findAllUsers(type: number): Publisher\u003cUser\u003e\n}\n\nconst rsocket = await RSocketConnector.create().connect(\"ws://127.0.0.1:8080/rsocket\");\n\nconst userService = buildServiceStub\u003cUserService\u003e(rsocket, \"UserService\")\n\nlet user = await userService.findById(1);\n```\n\n* Deno test\n\n```\n$ deno test --allow-net deno_client.ts\n```\n\n# References\n\n* Deno RSocket: https://deno.land/x/rsocket\n* Deno: https://deno.land/\n* Spring RSocket: https://docs.spring.io/spring/docs/5.2.7.RELEASE/spring-framework-reference/web-reactive.html#rsocket\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinux-china%2Frsocket-deno-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinux-china%2Frsocket-deno-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinux-china%2Frsocket-deno-service/lists"}