From 71d7dc0108f0c5f71fe744bf56792d69d976979d Mon Sep 17 00:00:00 2001 From: Mikael Grankvist Date: Fri, 10 Jan 2025 09:24:15 +0200 Subject: [PATCH] Do not queue when using bidirectional push --- .../main/java/com/vaadin/client/communication/MessageSender.java | 1 + 1 file changed, 1 insertion(+) diff --git a/flow-client/src/main/java/com/vaadin/client/communication/MessageSender.java b/flow-client/src/main/java/com/vaadin/client/communication/MessageSender.java index 8dc9eb0463c..50315a6c662 100644 --- a/flow-client/src/main/java/com/vaadin/client/communication/MessageSender.java +++ b/flow-client/src/main/java/com/vaadin/client/communication/MessageSender.java @@ -238,6 +238,7 @@ private void sendPayload(final JsonObject payload) { } if (push != null && push.isBidirectional()) { + messageQueue.remove(0); // When using bidirectional transport, the payload is not resent // to the server during reconnection attempts. // Keep a copy of the message, so that it could be resent to the