Standardise auto-receipt of current context on join/addContextListener in DesktopAgent and Channel #511
Labels
channels feeds & transactions
Channels, Feeds & Transactions Discussion Group
enhancement
New feature or request
Enhancement Request
According to the FDC3 API spec:
https://fdc3.finos.org/docs/api/spec#joining-channels
We take that to mean that the current context of the channel will be auto-broadcast to the app when it joins the channel with context listeners already set (last context for an un-typed listener, last context of the specific type for a type listener), or when it adds a context listener.
n.b. assume a context has already been broadcast to the channel in each case below
This is not the case for Channels, where you have to manually retrieve the context
We've found that this difference can be confusing for developers using the API. It also introduces complexity in implementing the DesktopAgent/Channel API that may be unnecessary (and the requirement is easy to miss in the spec).
To resolve, we suggest that the current context of a channel should be received automatically when adding a context listener and that this detail should be added to the documentation of the
addContextListener
functions (in both APIs).The text was updated successfully, but these errors were encountered: