Package javax.websocket

Examples of javax.websocket.PongMessage


    @Override
    protected void onFullPongMessage(WebSocketChannel webSocketChannel, BufferedBinaryMessage bufferedBinaryMessage) {
        final HandlerWrapper handler = getHandler(FrameType.PONG);
        if (handler != null) {
            final Pooled<ByteBuffer[]> pooled = bufferedBinaryMessage.getData();
            final PongMessage message = DefaultPongMessage.create(toBuffer(pooled.getResource()));

            session.getContainer().invokeEndpointMethod(executor, new Runnable() {
                @Override
                public void run() {
                    try {
View Full Code Here


    @Override
    protected void onFullPongMessage(WebSocketChannel webSocketChannel, BufferedBinaryMessage data) {
        final HandlerWrapper handler = getHandler(FrameType.PONG);
        if (handler != null) {
            ByteBuffer[] payload = data.getData();
            final PongMessage message = DefaultPongMessage.create(toBuffer(payload));

            session.getContainer().invokeEndpointMethod(session.getWebSocketChannel(), new Runnable() {
                @Override
                public void run() {
                    ((MessageHandler.Whole) handler.getHandler()).onMessage(message);
View Full Code Here

        @Override
        public void onPongFrame(final WebSocketSession s, final ByteBuffer... payload) {
            if (pongMessage == null) {
                return;
            }
            PongMessage message;
            if (payload.length == 1) {
                message = DefaultPongMessage.create(payload[0]);
            } else {
                int count = 0;
                for (ByteBuffer b : payload) {
View Full Code Here

    @SuppressWarnings({"unchecked", "rawtypes"})
    @Override
    public void onPongFrame(WebSocketSession s, ByteBuffer... payload) {
        HandlerWrapper handler = getHandler(FrameType.PONG);
        if (handler != null) {
            PongMessage message;
            if (payload.length == 1) {
                message =  DefaultPongMessage.create(payload[0]);
            } else {
                message = DefaultPongMessage.create(toBuffer(payload));
            }
View Full Code Here

    @SuppressWarnings({"unchecked", "rawtypes"})
    @Override
    public void onPongFrame(WebSocketSession s, ByteBuffer... payload) {
        HandlerWrapper handler = getHandler(FrameType.PONG);
        if (handler != null) {
            PongMessage message;
            if (payload.length == 1) {
                message =  DefaultPongMessage.create(payload[0]);
            } else {
                message = DefaultPongMessage.create(toBuffer(payload));
            }
View Full Code Here

TOP

Related Classes of javax.websocket.PongMessage

Copyright © 2018 www.massapicom. 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.