MdocTransportFactory

An interface used to create MdocTransport instances.

Inheritors

Types

Link copied to clipboard

The default factory for the platform.

Functions

Link copied to clipboard
abstract fun createTransport(connectionMethod: MdocConnectionMethod, role: MdocRole, options: MdocTransportOptions = MdocTransportOptions()): MdocTransport

Creates a new MdocTransport for a single connectionMethod.

Link copied to clipboard
open fun createTransports(connectionMethods: List<MdocConnectionMethod>, role: MdocRole, options: MdocTransportOptions = MdocTransportOptions()): List<MdocTransport>

Creates the MdocTransport instances needed to serve connectionMethods.