origin

abstract fun origin(origin: String): PNConfiguration.Builder

Custom origin if needed.

Defaults to ps.pndsn.com (HTTP/1.1 only). Set to an H/2-capable endpoint to use HTTP/2; when you do, consider raising maximumConnections for stream-multiplexing concurrency.


abstract val origin: String

Custom origin if needed.

Defaults to ps.pndsn.com, which serves HTTP/1.1 only. To use HTTP/2, set origin to an HTTP/2-capable endpoint provided by PubNub for your keyset.

When the SDK is pointed at an HTTP/2-capable origin, consider raising maximumConnections to take advantage of HTTP/2 stream multiplexing (a single H/2 connection supports many concurrent streams — see that field's KDoc for details).