advertise
suspend fun List<MdocConnectionMethod>.advertise(role: MdocRole, transportFactory: MdocTransportFactory, options: MdocTransportOptions): List<MdocTransport>
A helper for advertising a number of connections to a remote peer.
For each MdocConnectionMethod this creates a MdocTransport which is advertised and opened.
Return
a list of MdocTransport methods that are being advertised.
Parameters
role
the role to use when creating connections.
transportFactory
the MdocTransportFactory used to create MdocTransport instances.
options
the MdocTransportOptions to use when creating MdocTransport instances.