* @param exchange The {@link HttpServerExchange} for which the handshake and upgrade should occur.
* @param callback The callback to call once the exchange is upgraded
*/
public final void handshake(final WebSocketHttpExchange exchange, final WebSocketConnectionCallback callback) {
exchange.upgradeChannel(new UpgradeCallback() {
@Override
public void handleUpgrade(final StreamConnection channel, final Pool<ByteBuffer> buffers) {
//TODO: fix this up to use the new API and not assembled
WebSocketChannel webSocket = createChannel(exchange, new AssembledConnectedStreamChannel(channel, channel.getSourceChannel(), channel.getSinkChannel()), buffers);