dart-gde / chrome.dart

Provide Dart interop with chrome.* APIs for Chrome Packaged Apps
Other
125 stars 48 forks source link

onMessage listener should be able to return true in order to keep the Port open for a response #252

Open bholtz opened 7 years ago

bholtz commented 7 years ago

From the spec

Return true from the event listener if you wish to call sendResponse after the event listener returns

In the generated code here, we do not expose a way to specify that the optional parameter for the listener return value should be true.

aefalcon commented 6 years ago

Similarly chrome.runtime.onMessageExternal does not work.