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
RPC client widget will encounter an exception when attempting to call a function that was registered by a background widget. Making the background widget a normal widget and refreshing the browser allows the call to succeed.
Potentially related issue: OWF.getOpenedWidgets() does not return background widgets.
To reproduce:
Create 2 normal widgets, one as a RPC server and the other as a client. Ensure OWF.RPC.registerFunctions() is called before OWF.notifyWidgetReady(); and both are preformed within OWF.ready() on the server widget. The client widget can use OWF.Launcher.launch() to ensure the first widget is launched and also get the instance id via the result.uniqueId in the callback. Said ID can then be used to get the widget proxy. (Using the launcher to get the instance ID avoids a related issue with background widget missing from getOpenWidgets.)
Confirm the client can successfully call a function on the server widget via RPC.
Switch the server widget to a background widget.
Error will occur when client attempts to call RPC function.
The text was updated successfully, but these errors were encountered:
Additionally I have been unable to cause WidgetProxy.onReady() to fire in the client widget whether the RPC server widget is background or not. In both cases I confirmed the server widget was calling OWF.notifyWidgetReady() as it was supposed to.
Note that publish/subscribe Eventing is available as an alternative communication mechanism and I was able to confirm it works to/from a background widget. One caveat with pub/sub Eventing is the optional third argument to the OWF.Eventing.publish() function does not seem to work reliably when targeting the ID of a background widget and should be omitted. Said problem with the destination argument of the publish() function may be related to this bug.
RPC client widget will encounter an exception when attempting to call a function that was registered by a background widget. Making the background widget a normal widget and refreshing the browser allows the call to succeed.
Potentially related issue: OWF.getOpenedWidgets() does not return background widgets.
To reproduce:
The text was updated successfully, but these errors were encountered: