Tuesday, April 26, 2016

Global Event bus for separate compilation modules

What do you mean for separate modules? Gwt enables to develop separate modules but during compilation time you will get a unique javascript source... if you mean that you have more than one entry point I can imagine that you are running them in separate window or separate iframe. If so you can build an event driven interface trough Window.postMessage, when a window receives a message you can intercept it with window.addEventListener('message', listener). More info on https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment