origin

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).