{"id":19519742,"url":"https://github.com/ep2p/row-reuse-starter","last_synced_at":"2025-02-26T00:21:48.498Z","repository":{"id":57731985,"uuid":"320280164","full_name":"ep2p/row-reuse-starter","owner":"ep2p","description":"A spring boot starter to run both row server and client and help reusing websocket connection.","archived":false,"fork":false,"pushed_at":"2021-08-16T13:47:07.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-08T13:27:03.664Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ep2p.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":"2020-12-10T13:25:35.000Z","updated_at":"2021-08-16T13:47:33.000Z","dependencies_parsed_at":"2022-09-26T22:10:41.029Z","dependency_job_id":null,"html_url":"https://github.com/ep2p/row-reuse-starter","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ep2p%2Frow-reuse-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ep2p%2Frow-reuse-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ep2p%2Frow-reuse-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ep2p%2Frow-reuse-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ep2p","download_url":"https://codeload.github.com/ep2p/row-reuse-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240767782,"owners_count":19854320,"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-11T00:21:34.747Z","updated_at":"2025-02-26T00:21:48.380Z","avatar_url":"https://github.com/ep2p.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# row-reuse-starter [![](https://jitpack.io/v/idioglossia/row-client-server-starter.svg)](https://jitpack.io/#idioglossia/row-client-server-starter)\nA spring boot starter to run both row server and client and help **reusing websocket connection**.\n\nSample **application.yml** content to make it work:\n\n```\nrow:\n  cs:\n    reuse: true\n  enable: true\n  ws:\n    enable: true\n  client:\n    enable: true\n    type: spring\n  handler:\n    track-heartbeats: false\n```\n\nBasically, using this library, two important things happen:\n\n1. ROW client will add a logic to its message listener which will pass the **messages that don't look like a response** as a request to the `ProtocolService` of the server.\n2. Row server will add a logic to its message listener which will pass the **messages that don't look like a request** to the client response handler. So it's assuming that they are response to a previously sent message.\n\nBefore you create a new RowClient, you may want to check if you can find an already persisting connection in `io.ep2p.row.server.repository.RowSessionRegistry()`.\nIf you could get the `RowServerWebsocket` from the `RowSessionRegistry` then you can easily reuse it as a client socket in your `RowClient` by calling `SpringReuseRowClientFactory.getRowClient()`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fep2p%2Frow-reuse-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fep2p%2Frow-reuse-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fep2p%2Frow-reuse-starter/lists"}