FIXME: The ws client doesn't handle any response other than the upgrade,
which may or may not be allowed. In that case, the server will return
a redirect to the root of the webapp to avoid possible broken relative
paths.