@@ -0,0 +1,948 @@
+package nxt.http.websocket;%0Aimport java.io.IOException;%0Aimport java.util.concurrent.TimeUnit;%0A%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0Aimport org.eclipse.jetty.websocket.servlet.WebSocketServlet;%0Aimport org.eclipse.jetty.websocket.servlet.WebSocketServletFactory;%0A%0A@SuppressWarnings(%22serial%22)%0Apublic class MofoEventServlet extends WebSocketServlet %7B%0A  %0A    final static long DEFAULT_TIMEOUT = TimeUnit.MINUTES.toMillis(5); //  5 minutes%0A    %0A    @Override%0A    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException %7B%0A        response.getWriter().println(%22HTTP GET method not implemented.%22);%0A    %7D%0A  %0A    @Override%0A    public void configure(WebSocketServletFactory factory) %7B%0A        factory.register(MofoWebSocketAdapter.class);%0A        factory.getPolicy().setIdleTimeout(DEFAULT_TIMEOUT);%0A    %7D%0A%7D

Add WebSocketServlet