{"id":23080684,"url":"https://github.com/chen0040/spring-notification-server","last_synced_at":"2026-04-26T12:32:27.474Z","repository":{"id":85884794,"uuid":"103795941","full_name":"chen0040/spring-notification-server","owner":"chen0040","description":"Notification server written in spring boot framework","archived":false,"fork":false,"pushed_at":"2017-12-19T12:49:22.000Z","size":1019,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T13:47:59.470Z","etag":null,"topics":["notification-server","spring-boot"],"latest_commit_sha":null,"homepage":null,"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/chen0040.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":"2017-09-17T01:56:41.000Z","updated_at":"2022-09-10T04:30:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"1862511b-eac4-4510-bd8a-84bf58f5e513","html_url":"https://github.com/chen0040/spring-notification-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chen0040/spring-notification-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chen0040%2Fspring-notification-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chen0040%2Fspring-notification-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chen0040%2Fspring-notification-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chen0040%2Fspring-notification-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chen0040","download_url":"https://codeload.github.com/chen0040/spring-notification-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chen0040%2Fspring-notification-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["notification-server","spring-boot"],"created_at":"2024-12-16T13:16:03.239Z","updated_at":"2026-04-26T12:32:27.469Z","avatar_url":"https://github.com/chen0040.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-notification-server\n\nDemo of connecting java client to spring web application via websocket\n\n# Usage\n\n### Spring Notificatin Server\n\ngit clone this project, run the \"./make.ps1\" powershell script in the project root directory to build spring-notification-server.jar\ninto the \"bin\" folder.\n\nRun the following command to start the spring-notification-server at http://localhost:8080\n\n```bash\njava -jar bin/spring-notification-server.jar\n```\n\nThe spring-notification-server defines an end point at http://localhost:8080/my-ws and sends a ping message to any connected client that subscribe to its topic \"/topics/event\" every 10 seconds. the angularjs demo can be viewed by navigating to http://localhost:8080 on your web browser.\n\n### Java WebSocket Client\n\nThe spring-notification-java-client project contains the implementation of the java websocket client. To subscribe to the \"/topics/event\" at http://localhost:8080/my-ws, run the following java codes:\n\n```java\n\nSpringBootWebSocketClient client = new SpringBootWebSocketClient();\nclient.setId(\"sub-001\");\nTopicHandler handler = client.subscribe(\"/topics/event\");\nhandler.addListener(new StompMessageListener() {\n @Override\n public void onMessage(StompMessage message) {\n    System.out.println(message.getHeader(\"destination\") + \": \" + message.getContent());\n }\n});\nclient.connect(\"ws://localhost:8080/my-ws/websocket\");\nThread.sleep(60000L);\nclient.disconnect();\n```\n\n### Android WebSocket Client\n\nThe spring-notification-android-client project contains the implementation of the android websocket client. To subscribe to the \"/topics/event\" at http://localhost:8080/my-ws, run the following android codes:\n\n```java\n\nSpringBootWebSocketClient client = new SpringBootWebSocketClient();\nclient.setId(\"sub-001\");\nTopicHandler handler = client.subscribe(\"/topics/event\");\nhandler.addListener(new StompMessageListener() {\n @Override\n public void onMessage(StompMessage message) {\n    System.out.println(message.getHeader(\"destination\") + \": \" + message.getContent());\n }\n});\nclient.connect(\"ws://localhost:8080/my-ws/websocket\");\nThread.sleep(60000L);\nclient.disconnect();\n```\n\n### Angular 4 Application\n\nTo run the angular application that communicate with the spring-notification-server:\n\n\n```bash \ncd ng4-application\nnpm install\nng serve\n```\n\nThis will start the angular application at http://localhost:4200 \n\nThe websocket implementation that subscribe to \"/topics/event\" websocket topic of the spring-notification-server can be found in the app.service.ts and app.component.ts\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchen0040%2Fspring-notification-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchen0040%2Fspring-notification-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchen0040%2Fspring-notification-server/lists"}