public Builder setSocketConnectorFactory(final BOSHClientSocketConnectorFactory factory) {
            if (factory == null) {
                throw(new IllegalArgumentException("SocketFactory cannot be null"));
            }

            config.socketConnectorFactory = factory;
            return this;
        }