Package org.xlightweb

Examples of org.xlightweb.UnsupportedProtocolException


        IWebSocketHandler echoHandler = new IWebSocketHandler() {
           
            public void onConnect(IWebSocketConnection con) throws IOException, UnsupportedProtocolException {
                if ((con.getProtocol() == null) || !con.getProtocol().equalsIgnoreCase("com.example.echo")) {
                    throw new UnsupportedProtocolException("protocol " + con.getProtocol() + " is not supported (supported: com.example.echo)");
                }
            }
           
            public void onDisconnect(IWebSocketConnection con) throws IOException {
            }
View Full Code Here

TOP

Related Classes of org.xlightweb.UnsupportedProtocolException

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.