diff --git a/jetty-websocket/websocket-jetty-tests/src/test/java/org/eclipse/jetty/websocket/tests/EchoSocket.java b/jetty-websocket/websocket-jetty-tests/src/test/java/org/eclipse/jetty/websocket/tests/EchoSocket.java index 0b9e643c072..d1c7db2f4c2 100644 --- a/jetty-websocket/websocket-jetty-tests/src/test/java/org/eclipse/jetty/websocket/tests/EchoSocket.java +++ b/jetty-websocket/websocket-jetty-tests/src/test/java/org/eclipse/jetty/websocket/tests/EchoSocket.java @@ -36,9 +36,9 @@ public class EchoSocket extends EventSocket } @Override - public void onMessage(byte[] buf, int offset, int len) + public void onMessage(byte[] buf, int offset, int len) throws IOException { super.onMessage(buf, offset, len); - session.getRemote().sendBytes(ByteBuffer.wrap(buf, offset, len), WriteCallback.NOOP); + session.getRemote().sendBytes(ByteBuffer.wrap(buf, offset, len)); } } diff --git a/jetty-websocket/websocket-jetty-tests/src/test/java/org/eclipse/jetty/websocket/tests/EventSocket.java b/jetty-websocket/websocket-jetty-tests/src/test/java/org/eclipse/jetty/websocket/tests/EventSocket.java index bffbe3825e5..da610799f03 100644 --- a/jetty-websocket/websocket-jetty-tests/src/test/java/org/eclipse/jetty/websocket/tests/EventSocket.java +++ b/jetty-websocket/websocket-jetty-tests/src/test/java/org/eclipse/jetty/websocket/tests/EventSocket.java @@ -71,7 +71,7 @@ public class EventSocket } @OnWebSocketMessage - public void onMessage(byte[] buf, int offset, int len) + public void onMessage(byte[] buf, int offset, int len) throws IOException { ByteBuffer message = ByteBuffer.wrap(buf, offset, len); if (LOG.isDebugEnabled())