public static void main(final String[] args) throws InterruptedException, IOException {
        final SocketServerSettings settings = SocketServerSettings.read(FileSystems.getDefault().getPath("conf", "test-ws-gremlin.yaml"));
        final SimpleSocketServer server = new SimpleSocketServer(settings);
        // TODO: add HTTP version of socketserver
//        final Channel channel = server.start(new TestWSGremlinInitializer(settings));
//        while(channel.isOpen()) {
//            Thread.sleep(1000);
//        }
    }
A simple main class to create and run a SimpleSocketServer
gremlin-tools/gremlin-socket-server/src/main/java/org/apache/tinkerpop/gremlin/socket/server/SocketServerRunner.java