Another crash 😭

This commit is contained in:
PeytonPlayz595 2023-12-19 12:47:26 -05:00
parent f5a560d102
commit 87652bc6b5
2 changed files with 13 additions and 9 deletions

View File

@ -0,0 +1,13 @@
package net.io;
import org.eclipse.jetty.websocket.servlet.WebSocketServlet;
import org.eclipse.jetty.websocket.servlet.WebSocketServletFactory;
public class MyWebSocketServlet extends WebSocketServlet {
private static final long serialVersionUID = 1L;
@Override
public void configure(WebSocketServletFactory factory) {
factory.register(WebSocketChannel.class);
}
}

View File

@ -128,13 +128,4 @@ public class WebSocketChannel {
return bytesToWrite; return bytesToWrite;
} }
private static class MyWebSocketServlet extends WebSocketServlet {
private static final long serialVersionUID = 1L;
@Override
public void configure(WebSocketServletFactory factory) {
factory.register(WebSocketChannel.class);
}
}
} }