package io.advantageous.qbit.servlet.websocketproto.server;

import io.advantageous.qbit.servlet.websocketproto.server.HelloServerConfig;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.websocket.jsr356.server.ServerContainer;
import org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer;

public class ServerMain  {
    public static void main( String... args ) throws Exception {
        Server server = new Server(8080);


        final ServletContextHandler context = new ServletContextHandler();



        server.setHandler(context);

        final ServerContainer serverContainer = WebSocketServerContainerInitializer.configureContext(context);


        serverContainer.addEndpoint(new HelloServerConfig());

        server.start();
        server.join();
    }
}
@@ -487,16 +487,22 @@
         
+final 
 Server s
@@ -527,18 +527,16 @@
 (8080);%0A
-%0A%0A
         
@@ -603,18 +603,16 @@
 ler();%0A%0A
-%0A%0A
         
@@ -639,17 +639,16 @@
 ntext);%0A
-%0A
         
@@ -750,18 +750,16 @@
 ntext);%0A
-%0A%0A
         

Clean up