From a691024c38ef96992719d32743d34b3e2ebaef60 Mon Sep 17 00:00:00 2001 From: jfarcand Date: Tue, 2 Apr 2024 18:04:34 -0400 Subject: [PATCH] Update for 3.0.0 release --- README.md | 94 +++----------------------------------------------- module/pom.xml | 6 ++-- pom.xml | 6 +--- 3 files changed, 9 insertions(+), 97 deletions(-) diff --git a/README.md b/README.md index 80389e8..8ba7b31 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,6 @@ This project brings the [Atmosphere Framework](https://github.com/Atmosphere/atmosphere) to the [Play!](http://www.playframework.com/) Framework. It support ALL Atmosphere's modules like Runtime, Jersey and Socket.IO. -## Try it! - -Fork the [samples workspace](https://github.com/Atmosphere/atmosphere-samples/tree/master/play-samples) and go under samples/chat or samples/jersey) - ```bash % sbt update % sbt run @@ -14,73 +10,26 @@ Fork the [samples workspace](https://github.com/Atmosphere/atmosphere-samples/tr Download [Atmosphere Play!](http://search.maven.org/#search%7Cga%7C1%7Catmosphere-play), use Maven or [sbt](http://ntcoding.blogspot.ca/2013/09/atmosphere-scala-sbt-akka-step-by-step.html) - -For Play 2.8.x+ and Atmosphere 2.7+: - -```xml - - org.atmosphere - atmosphere-play - 2.6.0 - -``` - -For Play 2.6.x+ and Atmosphere 2.7+: +For Atmosphere 3.0+: ```xml org.atmosphere atmosphere-play - 2.5.0 + 3.0.0 ``` -For Play 2.5.x+: - -```xml - - org.atmosphere - atmosphere-play - 2.3.0 - -``` - -For Play 2.4.x+: - -```xml - - org.atmosphere - atmosphere-play - 2.2.0 - -``` - -For Play 2.2.x+: - -```xml - - org.atmosphere - atmosphere-play - 2.1.2 - -``` - -For Play 2.1.x: +For Play 2.8.x+ and Atmosphere 2.7+: ```xml org.atmosphere atmosphere-play - 1.0.0 + 2.6.0 ``` -## Join the growing community - -If you are interested, subscribe to our [mailing list](http://groups.google.com/group/atmosphere-framework) for more info! We are on irc.freenode.net under #atmosphere-comet - -## WebSockets, Server Sent Events, Streaming and Long-Polling transparently supported! - Server side using atmosphere-runtime ```java @ManagedService(path = "/chat") @@ -125,36 +74,6 @@ public class Chat { return message; } ``` - -Server side using atmosphere-jersey -```java - @Path("/chat") - public class ChatResource { - - /** - * Suspend the response without writing anything back to the client. - * @return a white space - */ - @Suspend(contentType = "application/json") - @GET - public String suspend() { - return ""; - } - - /** - * Broadcast the received message object to all suspended response. Do not write back the message to the calling connection. - * @param message a {@link Message} - * @return a {@link Response} - */ - @Broadcast(writeEntity = false) - @POST - @Produces("application/json") - public Response broadcast(Message message) { - return new Response(message.getAuthor(), message.getMessage()); - } -} -``` - and on the client side, ```js $(function () { @@ -192,7 +111,4 @@ and on the client side, }; subSocket = socket.subscribe(request); -``` - - -[![Analytics](https://ga-beacon.appspot.com/UA-31990725-2/Atmosphere/atmosphere-play)] +``` \ No newline at end of file diff --git a/module/pom.xml b/module/pom.xml index 0f98736..8d54aff 100644 --- a/module/pom.xml +++ b/module/pom.xml @@ -3,14 +3,14 @@ org.atmosphere play-project - 2.6.1-SNAPSHOT + 3.0.0-SNAPSHOT ../ 4.0.0 org.atmosphere atmosphere-play Atmosphere Play Module - 2.6.1-SNAPSHOT + 3.0.0-SNAPSHOT jar @@ -56,7 +56,7 @@ net.alchim31.maven scala-maven-plugin - 4.5.6 + 4.8.1 diff --git a/pom.xml b/pom.xml index fc4494e..d1ecc74 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ org.atmosphere play-project Atmosphere Play Project - 2.6.1-SNAPSHOT + 3.0.0-SNAPSHOT pom Atmosphere running on top of Play! @@ -25,10 +25,6 @@ github https://github.com/Atmosphere/atmosphere-play/issues - - - 2.0.9 - jfarcand