wsFactory.sendUnsupportedWebSocketVersionResponse(socketChannel);
} else {
ChannelFuture future = handshaker.handshake(socketChannel, req);
//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();
}
}