Another crash 😭
This commit is contained in:
parent
f5a560d102
commit
87652bc6b5
13
src/net/io/MyWebSocketServlet.java
Normal file
13
src/net/io/MyWebSocketServlet.java
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user