Javascript (client side) trigger on Vaadin session timeout

Hi, I need to trigger a javascript when the session times out on client side.

It is possible?