Back to project page SimplePushDemoApp.
The source code is released under:
GNU General Public License
If you think the Android project SimplePushDemoApp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.java_websocket.server; /* w ww . j a va2s . c o m*/ import java.net.Socket; import java.nio.channels.SelectionKey; import java.nio.channels.SocketChannel; import java.util.List; import org.java_websocket.WebSocketAdapter; import org.java_websocket.WebSocketImpl; import org.java_websocket.drafts.Draft; import org.java_websocket.server.WebSocketServer.WebSocketServerFactory; public class DefaultWebSocketServerFactory implements WebSocketServerFactory { @Override public WebSocketImpl createWebSocket( WebSocketAdapter a, Draft d, Socket s ) { return new WebSocketImpl( a, d ); } @Override public WebSocketImpl createWebSocket( WebSocketAdapter a, List<Draft> d, Socket s ) { return new WebSocketImpl( a, d ); } @Override public SocketChannel wrapChannel( SocketChannel channel, SelectionKey key ) { return (SocketChannel) channel; } }