private String httpUrl(String url) {
return url.startsWith("ws://") || url.startsWith("wss://") ? "http" + url.substring(2) : url;
}
protected void addFunction(final long timeout, final TimeUnit tu) {
functions.add(new FunctionWrapper("", new Function<TransportNotSupported>() {
@Override
public void on(TransportNotSupported transportNotSupported) {
request.transport().remove(0);
if (request.transport().size() > 0) {
try {