Examples of CloseFrame


Examples of org.jboss.aerogear.io.netty.handler.codec.sockjs.protocol.CloseFrame

    public void close() {
        session.onClose();
        sessionState.onClose();
        final Channel channel = sessionState.getSendingContext(session).channel();
        if (isWritable(channel)) {
            final CloseFrame closeFrame = new CloseFrame(3000, "Go away!");
            if (logger.isDebugEnabled()) {
                logger.debug("Writing {}", closeFrame);
            }
            channel.writeAndFlush(closeFrame).addListener(ChannelFutureListener.CLOSE);
        }
View Full Code Here

Examples of org.jboss.as.websockets.frame.CloseFrame

        return new PingFrame();
      case Pong:
        return new PongFrame();
      case ConnectionClose:
        closeSocket();
        return new CloseFrame();
    }
    throw new IOException("unknown frame type");
  }
View Full Code Here

Examples of org.jboss.as.websockets.frame.CloseFrame

        return new PingFrame();
      case Pong:
        return new PongFrame();
      case ConnectionClose:
        closeSocket();
        return new CloseFrame();
    }
    throw new IOException("unknown frame type");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.