SSLContext sslContext = null;
sslContext = SSLContext.getInstance( "TLS" );
sslContext.init( kmf.getKeyManagers(), tmf.getTrustManagers(), null );
chatserver.setWebSocketFactory( new DefaultSSLWebSocketServerFactory( sslContext ) );
chatserver.start();
}