createTransport

abstract fun createTransport(connectionMethod: MdocConnectionMethod, role: MdocRole, options: MdocTransportOptions = MdocTransportOptions()): MdocTransport

Creates a new MdocTransport.

Return

A MdocTransport instance, ready to be used.

Parameters

connectionMethod

the address to listen on or connect to.

role

the role of the MdocTransport.

options

options for the MdocTransport.