From 85a71e832b152c0d73ef9ea50c39a08c6dbdf2af Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 14 Jan 2019 15:19:08 +0300 Subject: [PATCH] Fix code server WS proxy issue --- .../src/main/java/org/teavm/devserver/ProxyWsClient.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/devserver/src/main/java/org/teavm/devserver/ProxyWsClient.java b/tools/devserver/src/main/java/org/teavm/devserver/ProxyWsClient.java index 61f89cfed..e5975a8ca 100644 --- a/tools/devserver/src/main/java/org/teavm/devserver/ProxyWsClient.java +++ b/tools/devserver/src/main/java/org/teavm/devserver/ProxyWsClient.java @@ -43,6 +43,8 @@ public class ProxyWsClient { @OnWebSocketConnect public void connect(Session session) { + session.getPolicy().setMaxBinaryMessageSize(100_000_000); + session.getPolicy().setMaxTextMessageSize(100_000_000); this.session = session; flush(); if (target != null) {