Unload Beacon for Vaadin Flow | Vaadin

Sends a beacon on unloading a page to close UIs without delay.

Unload Beacon for Vaadin Flow

This add-on uses the Beacon API to signal whenever a page is unloaded in the browser in order to immediately close the UI on the server. This allows for much earlier clean up of UIs and associated resources than having to wait for missed heart beats or session timeouts to trigger a UI's eventual disposal. Of course this is only on a best effort basis as there will always be situations where the browser is simply "gone" and no beacon will or can be sent.

This add-on in based on a technique demonstrated in the Vaadin Cookbook.

Getting started

In a Spring Boot application this add-on will work automatically once it has been added as dependency. For other frameworks see VaadinServiceInitListener on how to register the UnloadBeaconServiceInitListener manually.


Link to this version
BetaReleased 13 March 2021Apache License 2.0
Framework Support
Vaadin platform 14+
Browser Compatibility
Install with
Release notes - Version 1.0.1