{"id":13806369,"url":"https://github.com/Atmosphere/atmosphere-vertx","last_synced_at":"2025-05-13T21:33:02.264Z","repository":{"id":57738744,"uuid":"10320995","full_name":"Atmosphere/atmosphere-vertx","owner":"Atmosphere","description":"Atmosphere for Vert.x","archived":false,"fork":false,"pushed_at":"2023-12-07T14:56:50.000Z","size":586,"stargazers_count":41,"open_issues_count":3,"forks_count":10,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-11-12T12:54:13.694Z","etag":null,"topics":["atmosphere","java","jersey","reactive","vertx","websocket"],"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/Atmosphere.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}},"created_at":"2013-05-27T19:15:12.000Z","updated_at":"2023-05-02T14:27:56.000Z","dependencies_parsed_at":"2023-12-07T15:49:59.171Z","dependency_job_id":null,"html_url":"https://github.com/Atmosphere/atmosphere-vertx","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atmosphere%2Fatmosphere-vertx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atmosphere%2Fatmosphere-vertx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atmosphere%2Fatmosphere-vertx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atmosphere%2Fatmosphere-vertx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Atmosphere","download_url":"https://codeload.github.com/Atmosphere/atmosphere-vertx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225040340,"owners_count":17411460,"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":["atmosphere","java","jersey","reactive","vertx","websocket"],"created_at":"2024-08-04T01:01:10.950Z","updated_at":"2024-11-18T22:32:02.008Z","avatar_url":"https://github.com/Atmosphere.png","language":"Java","funding_links":[],"categories":["Web Frameworks"],"sub_categories":[],"readme":"### Vertosphere: A Java WebSocket and HTTP server powered by the [Atmosphere Framework](http://github.com/Atmosphere/atmosphere) and the [Vert.x](http://vertx.io/)  Framework.\n\nThe easiest way to get started with Vert.x is to download a sample and start it. [Or look at the Javadoc](http://atmosphere.github.io/atmosphere-vertx/apidocs/). Samples are available [here](https://github.com/Atmosphere/atmosphere-samples/tree/master/vertx-samples)\n\n```bash\n   % mvn package; jdebug -jar target/vertx-chat-xxx-fat.jar\n```\n\nSamples are the same as then one available in Atmosphere, e.g everything that works with Atmosphere works AS-IT-IS with the Vert.x module.\n\nDownload using Maven\n\n```xml\n     \u003cdependency\u003e\n         \u003cgroupId\u003eorg.atmosphere\u003c/groupId\u003e\n         \u003cartifactId\u003eatmosphere-vertx\u003c/artifactId\u003e\n         \u003cversion\u003e3.0.1\u003c/version\u003e\n     \u003c/dependency\u003e\n```\n![JDK8](https://github.com/Atmosphere/atmosphere-vertx/workflows/JDK8/badge.svg) \n![JDK11](https://github.com/Atmosphere/atmosphere-vertx/workflows/JDK11/badge.svg)\n![JDK13](https://github.com/Atmosphere/atmosphere-vertx/workflows/JDK13/badge.svg)\n\nFor example, the famous [multi-room Chat application](https://github.com/Atmosphere/atmosphere-samples/blob/master/vertx-samples/chat/src/main/java/org/atmosphere/vertx/samples/chat/VertxChatServer.java) in Atmosphere\nCan be run on top of Vert.x by doing:\n```java\npublic class VertxChatServer extends AbstractVerticle {\n\n    private static final Logger logger = LoggerFactory.getLogger(VertxChatServer.class);\n\n    private HttpServer httpServer;\n    private Vertx vertx;\n\n    @Override\n    public void init(Vertx vertx, Context context) {\n        this.vertx = vertx;\n        httpServer = vertx.createHttpServer();\n    }\n\n    @Override\n    public void start(Future\u003cVoid\u003e future) throws Exception {\n        VertxAtmosphere.Builder b = new VertxAtmosphere.Builder();\n\n        b.resource(ChatRoom.class).httpServer(httpServer).url(\"/chat/:room\")\n                .webroot(\"src/main/java/org/atmosphere/vertx/samples/webroot/\")\n                .vertx(vertx)\n                .build();\n        httpServer.listen(8080);\n    }\n\n    @Override\n    public void stop(Future\u003cVoid\u003e future) throws Exception {\n        httpServer.close();\n    }\n}\n```\nSame for Jersey. You can run any [Jersey resource](https://github.com/Atmosphere/atmosphere-vertx/blob/master/samples/jersey-chat/src/main/java/org/atmosphere/vertx/samples/chat/ResourceChat.java#L36-L61) like\ncan be boostrapped by doing\n```java\npublic class VertxJerseyChat extends AbstractVerticle {\n\n    private HttpServer httpServer;\n    private Vertx vertx;\n\n    @Override\n    public void init(Vertx vertx, Context context) {\n        this.vertx = vertx;\n        httpServer = vertx.createHttpServer();\n    }\n\n    @Override\n    public void start(Future\u003cVoid\u003e future) throws Exception {\n        VertxAtmosphere.Builder b = new VertxAtmosphere.Builder();\n\n        b.resource(ResourceChat.class).httpServer(httpServer).url(\"/chat/:room\")\n                .webroot(\"src/main/webapp/\")\n                .initParam(ApplicationConfig.WEBSOCKET_CONTENT_TYPE, \"application/json\")\n                .vertx(vertx)\n                .build();\n        httpServer.listen(8080);\n    }\n\n    @Override\n    public void stop(Future\u003cVoid\u003e future) throws Exception {\n        httpServer.close();\n    }\n}\n```\n[![Analytics](https://ga-beacon.appspot.com/UA-31990725-2/Atmosphere/atmosphere-vertx)]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAtmosphere%2Fatmosphere-vertx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAtmosphere%2Fatmosphere-vertx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAtmosphere%2Fatmosphere-vertx/lists"}