//TODO tie this to the channel future result?
//Create a WebSocket instance to handle frames
WebSocket socket = factory.create(socketChannel, req);
WebSocketStore.defaultWebSocketStore().takeSocketForChannel(socket, socketChannel);
socket.didUpgrade();
}
}
/**
* @see <a href="http://docs.jboss.org/netty/3.2/api/org/jboss/netty/channel/SimpleChannelUpstreamHandler.html#exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext,%20org.jboss.netty.channel.ExceptionEvent)">SimpleChannelUpstreamHandler</a>