Reputation: 1
result = await messenger.callParent('testParentFunc', 'args', timeout)
result = await messenger.callWorker('testFunction', 'args', timeout)
It works by postingMessage and waiting for the response. Hope it is useful to you.
Upvotes: 0
Views: 77