Use NSURLSession for socket handshake and XHR transport.