throws IOException {
try {
if (socketChannel.isConnectionPending()) {
socketChannel.finishConnect();
} // end of if (socketChannel.isConnecyionPending())
socketIO = new SocketIO(socketChannel);
} catch (IOException e) {
String host = (String)sessionData.get("remote-hostname");
if (host == null) {
host = (String)sessionData.get("remote-host");
}