use of org.java_websocket.SSLSocketChannel2 in project quorrabot by GloriousEggroll.
the class DefaultSSLWebSocketServerFactory method wrapChannel.
@Override
public ByteChannel wrapChannel(SocketChannel channel, SelectionKey key) throws IOException {
SSLEngine e = sslcontext.createSSLEngine();
e.setUseClientMode(false);
return new SSLSocketChannel2(channel, e, exec, key);
}
Aggregations