Skip to main content

createPubSubNegotiationTransport

@totemsdk/edge-adapters


@totemsdk/edge-adapters / createPubSubNegotiationTransport

Function: createPubSubNegotiationTransport()

createPubSubNegotiationTransport(config): NegotiationTransport

Create a NegotiationTransport over a pub/sub transport.

Each negotiation uses a topic derived from its negotiationId. The sender address is carried in the envelope (a sender field on the message), so the ingress pipeline can authenticate it.

Parameters

config

PubSubNegotiationTransportConfig

Returns

NegotiationTransport