@Override public void incoming(WebSocketFrame frame) { LOG.debug("incoming({})", frame); int count = parseCount.incrementAndGet(); if ((count % 10) == 0) { LOG.info("Client parsed {} frames", count); } WebSocketFrame copy = new WebSocketFrame(frame); incomingFrames.incoming(copy); }
@Override public void incoming(WebSocketException e) { incomingFrames.incoming(e); }