Package org.jboss.netty.handler.codec.http.websocket

Examples of org.jboss.netty.handler.codec.http.websocket.WebSocketFrame


        if (message instanceof DecodingHybiFrame) {
            DecodingHybiFrame frame = (DecodingHybiFrame) message;
            frame.dispatchMessage(handler, webSocketConnection, executor, exceptionHandler);
        } else {
            // Hixie 75/76
            final WebSocketFrame frame = (WebSocketFrame) message;
            executor.execute(new Runnable() {
                @Override
                public void run() {
                    try {
                        handler.onMessage(webSocketConnection, frame.getTextData());
                    } catch (Throwable throwable) {
                        exceptionHandler.uncaughtException(Thread.currentThread(), throwable);
                    }
                }
            });
View Full Code Here

TOP

Related Classes of org.jboss.netty.handler.codec.http.websocket.WebSocketFrame

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.