MCPcopy Index your code
hub / github.com/Atmosphere/atmosphere-vertx

github.com/Atmosphere/atmosphere-vertx @3.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 3.1.0 ↗ · + Follow
52 symbols 101 edges 6 files 19 documented · 37% updated 4mo ago★ 443 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Vertosphere: A Java WebSocket and HTTP server powered by the Atmosphere Framework and the Vert.x Framework.

The easiest way to get started with Vert.x is to download a sample and start it. Or look at the Javadoc. Samples are available here

   % mvn package; jdebug -jar target/vertx-chat-xxx-fat.jar

Samples 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.

Download using Maven

     <dependency>
         <groupId>org.atmosphere</groupId>
         <artifactId>atmosphere-vertx</artifactId>
         <version>3.0.1</version>
     </dependency>

JDK8 JDK11 JDK13

For example, the famous multi-room Chat application in Atmosphere Can be run on top of Vert.x by doing:

public class VertxChatServer extends AbstractVerticle {

    private static final Logger logger = LoggerFactory.getLogger(VertxChatServer.class);

    private HttpServer httpServer;
    private Vertx vertx;

    @Override
    public void init(Vertx vertx, Context context) {
        this.vertx = vertx;
        httpServer = vertx.createHttpServer();
    }

    @Override
    public void start(Future<Void> future) throws Exception {
        VertxAtmosphere.Builder b = new VertxAtmosphere.Builder();

        b.resource(ChatRoom.class).httpServer(httpServer).url("/chat/:room")
                .webroot("src/main/java/org/atmosphere/vertx/samples/webroot/")
                .vertx(vertx)
                .build();
        httpServer.listen(8080);
    }

    @Override
    public void stop(Future<Void> future) throws Exception {
        httpServer.close();
    }
}

Same for Jersey. You can run any Jersey resource like can be boostrapped by doing

public class VertxJerseyChat extends AbstractVerticle {

    private HttpServer httpServer;
    private Vertx vertx;

    @Override
    public void init(Vertx vertx, Context context) {
        this.vertx = vertx;
        httpServer = vertx.createHttpServer();
    }

    @Override
    public void start(Future<Void> future) throws Exception {
        VertxAtmosphere.Builder b = new VertxAtmosphere.Builder();

        b.resource(ResourceChat.class).httpServer(httpServer).url("/chat/:room")
                .webroot("src/main/webapp/")
                .initParam(ApplicationConfig.WEBSOCKET_CONTENT_TYPE, "application/json")
                .vertx(vertx)
                .build();
        httpServer.listen(8080);
    }

    @Override
    public void stop(Future<Void> future) throws Exception {
        httpServer.close();
    }
}

[Analytics]

Core symbols most depended-on inside this repo

close
called by 4
server/src/main/java/org/atmosphere/vertx/VertxWebSocket.java
path
called by 3
server/src/main/java/org/atmosphere/vertx/AtmosphereCoordinator.java
framework
called by 3
server/src/main/java/org/atmosphere/vertx/AtmosphereCoordinator.java
route
called by 3
server/src/main/java/org/atmosphere/vertx/AtmosphereCoordinator.java
request
called by 3
server/src/main/java/org/atmosphere/vertx/AtmosphereUtils.java
build
called by 3
server/src/main/java/org/atmosphere/vertx/VertxAtmosphere.java
resource
called by 3
server/src/main/java/org/atmosphere/vertx/VertxAtmosphere.java
close
called by 2
server/src/main/java/org/atmosphere/vertx/VertxAsyncIOWriter.java

Shape

Method 45
Class 7

Languages

Java100%

Modules by API surface

server/src/main/java/org/atmosphere/vertx/VertxAtmosphere.java20 symbols
server/src/main/java/org/atmosphere/vertx/AtmosphereCoordinator.java12 symbols
server/src/main/java/org/atmosphere/vertx/VertxAsyncIOWriter.java9 symbols
server/src/main/java/org/atmosphere/vertx/VertxWebSocket.java5 symbols
server/src/main/java/org/atmosphere/vertx/AtmosphereUtils.java5 symbols
assembly/src/main/java/org/atmosphere/voidClass/VoidClass.java1 symbols

For agents

$ claude mcp add atmosphere-vertx \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact