{"id":18814693,"url":"https://github.com/rstoyanchev/spring-websocket-test","last_synced_at":"2025-04-07T12:07:27.242Z","repository":{"id":7803648,"uuid":"9174026","full_name":"rstoyanchev/spring-websocket-test","owner":"rstoyanchev","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-21T22:05:32.000Z","size":155,"stargazers_count":166,"open_issues_count":5,"forks_count":133,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-03-31T10:08:41.962Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rstoyanchev.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":"2013-04-02T15:58:27.000Z","updated_at":"2025-03-08T05:01:30.000Z","dependencies_parsed_at":"2024-11-07T23:52:50.165Z","dependency_job_id":null,"html_url":"https://github.com/rstoyanchev/spring-websocket-test","commit_stats":{"total_commits":55,"total_committers":7,"mean_commits":7.857142857142857,"dds":0.6,"last_synced_commit":"0ad15b921593281ce1fe6c28759a0c41f9248858"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstoyanchev%2Fspring-websocket-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstoyanchev%2Fspring-websocket-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstoyanchev%2Fspring-websocket-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstoyanchev%2Fspring-websocket-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rstoyanchev","download_url":"https://codeload.github.com/rstoyanchev/spring-websocket-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"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-07T23:42:37.155Z","updated_at":"2025-04-07T12:07:27.217Z","avatar_url":"https://github.com/rstoyanchev.png","language":"Java","readme":"## Overview\n\nDemonstrates Spring WebSocket and SockJS support in the Spring Framework. For a longer overview please see the [Spring Framework reference](https://docs.spring.io/spring-framework/docs/current/spring-framework-reference/web.html#websocket).\n\n**IMPORTANT:** The `master` branch contains examples using Spring's `WebSocketHandler` including with SockJS fallback options. The `endpoint` branch contains examples of using JSR-356 `Endpoint` and `@ServerEndpoint`.\n\n**NOTE:** Also check out the [Stock Portfolio](https://github.com/rstoyanchev/spring-websocket-portfolio) sample that demonstrates the use of a higher-level messaging over WebSocket.\n\n### Tomcat\n\nSet `TOMCAT_HOME` as an environment variable and use [deployTomcat.sh](https://github.com/rstoyanchev/spring-websocket-test/blob/master/deployTomcat.sh) and [shutdownTomcat.sh](https://github.com/rstoyanchev/spring-websocket-test/blob/master/shutdownTomcat.sh) in this directory.\n\nOpen a browser and go to \u003chttp://localhost:8080/spring-websocket-test/index.html\u003e\n\n### Jetty\n\nThe easiest way to run on Jetty is with `mvn jetty:run`.\n\nOpen a browser and go to \u003chttp://localhost:8080/spring-websocket-test/index.html\u003e\n\n**Note:** To deploy to a Jetty installation, add this to Jetty's `start.ini`:\n\n    OPTIONS=plus\n    etc/jetty-plus.xml\n    OPTIONS=annotations\n    etc/jetty-annotations.xml\n\n### WildFly 10+\n\nUnzip the WildFly server.\n\nSet `WILDFLY_HOME` as an environment variable and use [deployWildFly.sh](https://github.com/rstoyanchev/spring-websocket-test/blob/master/deployWildFly.sh) in this directory.\n\nOpen a browser and go to \u003chttp://localhost:8080/spring-websocket-portfolio/index.html\u003e\n\n### WebSphere Liberty 16+\n\nBuild and deploy with the following server configuration:\n\n    \u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n    \u003cserver description=\"new server\"\u003e\n        \u003c!-- Enable features --\u003e\n        \u003cfeatureManager\u003e\n            \u003cfeature\u003ejsp-2.3\u003c/feature\u003e\n            \u003cfeature\u003ewebSocket-1.1\u003c/feature\u003e\n        \u003c/featureManager\u003e\n        \u003c!-- To access this server from a remote client add a host attribute to the following element, e.g. host=\"*\" --\u003e\n        \u003chttpEndpoint id=\"defaultHttpEndpoint\"\n                      httpPort=\"9080\"\n                      httpsPort=\"9443\" /\u003e\n        \u003c!-- Automatically expand WAR files and EAR files --\u003e\n        \u003capplicationManager autoExpand=\"true\"/\u003e\n    \u003c/server\u003e\n\n### Glassfish\n\nGlassfish 4 provides JSR-356 support.\n\nDownload Glassfish 4 and unzip the downloaded distribution.\n\nStart the server:\n\n    cd \u003cunzip_dir\u003e/glassfish4\n    bin/asadmin start-domain\n\nDeploy the WAR file using the script in this directory.\n\nOpen a browser and go to \u003chttp://localhost:8080/spring-websocket-test/index.html\u003e\n\nWatch the logs:\n\n    cd \u003cunzip_dir\u003e/glassfish4\n    less `glassfish/domains/domain1/logs/server.log`\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstoyanchev%2Fspring-websocket-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frstoyanchev%2Fspring-websocket-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstoyanchev%2Fspring-websocket-test/lists"}