Package com.glines.socketio.common

Examples of com.glines.socketio.common.SocketIOException


                    data.append(msg);
                }
                try {
                    dataHandler.onWriteData(continuation.getServletResponse(), data.toString());
                } catch (IOException e) {
                    throw new SocketIOException(e);
                }
                if (!dataHandler.isConnectionPersistent() && !continuation.isInitial()) {
                    Continuation cont = continuation;
                    continuation = null;
                    cont.complete();
                } else {
                    getSession().startHeartbeatTimer();
                }
            } else {
                String data = frame.encode();
                if (!buffer.putMessage(data, maxIdleTime)) {
                    getSession().onDisconnect(DisconnectReason.TIMEOUT);
                    abort();
                    throw new SocketIOException();
                }
            }
        } else {
            throw new SocketIOClosedException();
        }
View Full Code Here


                LOGGER.log(Level.FINE, "Session[" + getSession().getSessionId() + "]: sendMessage: [" + frame.getFrameType() + "]: " + frame.getData());
            try {
                outbound.sendMessage(frame.encode());
            } catch (IOException e) {
                outbound.disconnect();
                throw new SocketIOException(e);
            }
        } else {
            throw new SocketIOClosedException();
        }
    }
View Full Code Here

TOP

Related Classes of com.glines.socketio.common.SocketIOException

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.