Inbound vs Outbound #1571
Replies: 2 comments
-
Hi Eric, I can understand the naming is a bit puzzling, but it's actually the inverse of what you're stating. Outbound transports are used for outbound message, and inbound for inbound by default (this is important). That is, if transport return route is not configured, the outbound transports will only acts as outbound transprots, and the inbound transports will only act as inbound transports. Due to an extension to didcomm, https://github.com/hyperledger/aries-rfcs/blob/main/features/0092-transport-return-route/README.md it is possible to also make an inbound channel able to reply to an inbound message, and for outbound transports to receive replies to their outbound message. The inbound/outbound mainly refers to the first message, and who opens channel. If you're only using servers, you would not need the transport return route extension, and in that case by default WsOutboundTransprot will only be used to send messages to the other party, and the WsInboundTransport will only be used to receive messages. Same with http outbound vs inbound |
Beta Was this translation helpful? Give feedback.
-
"The inbound/outbound mainly refers to the first message, and who opens channel." Practically, in a react-native app, you can only use WsOutboundTransport and HttpOutboundTransport, which both implement OutboundTransport, and none of which implements InboundTransport.
So you end up having 2 outbound transports, and no inbound one, which is more than puzzling... |
Beta Was this translation helpful? Give feedback.
-
Hi there,
just some thoughts on transport classes:
Beta Was this translation helpful? Give feedback.
All reactions