java.lang.IllegalStateException: Message will not be sent because the WebSocket session has been closed
…
at com.vaadin.flow.server.communication.PushAtmosphereHandler.onStateChange(PushAtmosphereHandl
er.java:54)
The situation in this case is that the server tries to push out changes to the client and at that moment notices that the client has closed the connection. In most cases, the closing of the connection is detected earlier so that Vaadin doesn’t even try to push out the update. The exception you see is mostly likely only happening when disconnect happens at exactly the same time as the push.