overrideConfiguration

Allows to override certain configuration options (see PNConfigurationOverride.Builder) for this request only.

Return

Returns the same instance for convenience, so sync or async can be called next.


abstract fun overrideConfiguration(configuration: PNConfiguration): Endpoint<OUTPUT>

Allows to override certain configuration options (see PNConfigurationOverride.Builder) for this request only.

PNConfigurationOverride.from should be used to obtain a PNConfigurationOverride.Builder. Only options present in PNConfigurationOverride.Builder will be used for the override.

Example:

val configOverride = PNConfigurationOverride.from(pubnub.configuration).apply {
userId = UserId("example")
}.build()

val result = endpoint.overrideConfiguration(configOverride).sync()

Return

Returns the same instance for convenience, so sync or async can be called next.