Пример #1
0
 @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);
 }
Пример #2
0
 @Override
 public void incoming(WebSocketException e) {
   incomingFrames.incoming(e);
 }