Skip to content

Commit

Permalink
Update for 3.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarcand committed Apr 2, 2024
1 parent ae9cb16 commit a691024
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 97 deletions.
94 changes: 5 additions & 89 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
<dependency>
<groupId>org.atmosphere</groupId>
<artifactId>atmosphere-play</artifactId>
<version>2.6.0</version>
</dependency>
```

For Play 2.6.x+ and Atmosphere 2.7+:
For Atmosphere 3.0+:

```xml
<dependency>
<groupId>org.atmosphere</groupId>
<artifactId>atmosphere-play</artifactId>
<version>2.5.0</version>
<version>3.0.0</version>
</dependency>
```

For Play 2.5.x+:

```xml
<dependency>
<groupId>org.atmosphere</groupId>
<artifactId>atmosphere-play</artifactId>
<version>2.3.0</version>
</dependency>
```

For Play 2.4.x+:

```xml
<dependency>
<groupId>org.atmosphere</groupId>
<artifactId>atmosphere-play</artifactId>
<version>2.2.0</version>
</dependency>
```

For Play 2.2.x+:

```xml
<dependency>
<groupId>org.atmosphere</groupId>
<artifactId>atmosphere-play</artifactId>
<version>2.1.2</version>
</dependency>
```

For Play 2.1.x:
For Play 2.8.x+ and Atmosphere 2.7+:

```xml
<dependency>
<groupId>org.atmosphere</groupId>
<artifactId>atmosphere-play</artifactId>
<version>1.0.0</version>
<version>2.6.0</version>
</dependency>
```

## 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")
Expand Down Expand Up @@ -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 () {
Expand Down Expand Up @@ -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)]
```
6 changes: 3 additions & 3 deletions module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<parent>
<groupId>org.atmosphere</groupId>
<artifactId>play-project</artifactId>
<version>2.6.1-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.atmosphere</groupId>
<artifactId>atmosphere-play</artifactId>
<name>Atmosphere Play Module</name>
<version>2.6.1-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
Expand Down Expand Up @@ -56,7 +56,7 @@
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>4.5.6</version>
<version>4.8.1</version>
<executions>
<execution>
<goals>
Expand Down
6 changes: 1 addition & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<groupId>org.atmosphere</groupId>
<artifactId>play-project</artifactId>
<name>Atmosphere Play Project</name>
<version>2.6.1-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<description>
Atmosphere running on top of Play!
Expand All @@ -25,10 +25,6 @@
<system>github</system>
<url>https://github.com/Atmosphere/atmosphere-play/issues</url>
</issueManagement>

<prerequisites>
<maven>2.0.9</maven>
</prerequisites>
<developers>
<developer>
<id>jfarcand</id>
Expand Down

0 comments on commit a691024

Please sign in to comment.