createConnection

abstract var createConnection: (authority: URL, option: SessionOptions) -> Duplex?(source)

An optional callback that receives the URL instance passed to connect and the options object, and returns any Duplex stream that is to be used as the connection for this session.