Merge remote-tracking branch 'origin/jetty-9.4.x' into jetty-10.0.x
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
commit
fc0f4b28f9
|
@ -36,9 +36,9 @@ public class EchoSocket extends EventSocket
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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);
|
super.onMessage(buf, offset, len);
|
||||||
session.getRemote().sendBytes(ByteBuffer.wrap(buf, offset, len), WriteCallback.NOOP);
|
session.getRemote().sendBytes(ByteBuffer.wrap(buf, offset, len));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,7 @@ public class EventSocket
|
||||||
}
|
}
|
||||||
|
|
||||||
@OnWebSocketMessage
|
@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);
|
ByteBuffer message = ByteBuffer.wrap(buf, offset, len);
|
||||||
if (LOG.isDebugEnabled())
|
if (LOG.isDebugEnabled())
|
||||||
|
|
Loading…
Reference in New Issue