You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using postal.request-response and I noticed from the PostalJS code base that postal.channel() returns a new ChannelDefinition every time.
It seems to me that, if a ChannelDefinition exists for a particular channel, it should just return that instance. I mean, what is the meaning of the following:
Should we be able to have two distinct instances of a definition over the same channel?
This is interfering with postalRR because it would appear that both requester and responder need to have access to the same instance of ChannelDefinition, which defeats the purpose. Responders and requesters are almost invariably going to exist in different parts of the application.
Or am I missing something here?
Thank you.
The text was updated successfully, but these errors were encountered:
I'm using postal.request-response and I noticed from the PostalJS code base that
postal.channel()
returns a newChannelDefinition
every time.It seems to me that, if a
ChannelDefinition
exists for a particular channel, it should just return that instance. I mean, what is the meaning of the following:Should we be able to have two distinct instances of a definition over the same channel?
This is interfering with postalRR because it would appear that both requester and responder need to have access to the same instance of
ChannelDefinition
, which defeats the purpose. Responders and requesters are almost invariably going to exist in different parts of the application.Or am I missing something here?
Thank you.
The text was updated successfully, but these errors were encountered: