{"id":25720009,"url":"https://github.com/gregwhitaker/springwebflux-websockets-example","last_synced_at":"2026-04-27T08:31:54.398Z","repository":{"id":55860828,"uuid":"132546110","full_name":"gregwhitaker/springwebflux-websockets-example","owner":"gregwhitaker","description":"Example of a reactive application using Websockets and Spring WebFlux","archived":false,"fork":false,"pushed_at":"2020-12-11T00:09:03.000Z","size":105,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T22:26:27.603Z","etag":null,"topics":["project-reactor","reactive","reactor","spring-boot","spring-webflux","websocket"],"latest_commit_sha":null,"homepage":"","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}},"created_at":"2018-05-08T03:02:36.000Z","updated_at":"2020-12-10T16:32:19.000Z","dependencies_parsed_at":"2022-08-15T08:00:33.196Z","dependency_job_id":null,"html_url":"https://github.com/gregwhitaker/springwebflux-websockets-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gregwhitaker/springwebflux-websockets-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fspringwebflux-websockets-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fspringwebflux-websockets-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fspringwebflux-websockets-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fspringwebflux-websockets-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregwhitaker","download_url":"https://codeload.github.com/gregwhitaker/springwebflux-websockets-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fspringwebflux-websockets-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32329463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["project-reactor","reactive","reactor","spring-boot","spring-webflux","websocket"],"created_at":"2025-02-25T17:36:18.835Z","updated_at":"2026-04-27T08:31:54.365Z","avatar_url":"https://github.com/gregwhitaker.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# springwebflux-websockets-example\n![Build](https://github.com/gregwhitaker/springwebflux-websockets-example/workflows/Build/badge.svg)\n\nAn example of a reactive application using WebSockets and Spring WebFlux.\n\nThis example has a ticker service that generates stock prices and a client that allows you to get the changes for all stock tickers\nstreamed to you or allows you to subscribe to a single stock symbol and only get its changes streamed to you.\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 application:\n\n1. Start the `ticker-service` by running the following command:\n\n        ./gradlew :ticker-service:bootRun\n        \n2. In a new terminal, run the following command to start the `ticker-client` and stream all stock tickers:\n\n        ./gradlew :ticker-client:bootRun\n        \n    If successful, you will see prices streaming in as they change:\n\n        [symbol: 'MCD', price: '217.04569062233392', volume: '3842459']\n        [symbol: 'DWDP', price: '58.773564223813985', volume: '18439056']\n        [symbol: 'V', price: '201.36407665460746', volume: '5068242']\n        [symbol: 'JNJ', price: '54.7617904456654', volume: '4463539']\n        [symbol: 'UTX', price: '26.037694121485202', volume: '5713780']\n        [symbol: 'GS', price: '144.70238095792007', volume: '1470297']\n        [symbol: 'GS', price: '426.9192178781588', volume: '3072623']\n        \n3. Now run the following command to subscribe only to Nike's (`NKE`) stock price changes:\n\n        ./gradlew :ticker-client:bootRun --args=\"NKE\"\n\n    If successful, you will now only see `NKE` price change events streamed to you:\n\n        [symbol: 'NKE', price: '182.39876004423166', volume: '127025']\n        [symbol: 'NKE', price: '0.10341349711799158', volume: '4423692']\n        [symbol: 'NKE', price: '0.43799636309273626', volume: '70043']\n\n## Bugs and Feedback\nFor bugs, questions, and discussions please use the [Github Issues](https://github.com/gregwhitaker/springwebflux-websockets-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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fspringwebflux-websockets-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregwhitaker%2Fspringwebflux-websockets-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fspringwebflux-websockets-example/lists"}