[lgwebos] Increase limit to 5MB for Websocket text message (#16399)

A user reported an error with size 4316809 while previous max was 4194304.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
lolodomo 2024-02-17 11:51:24 +01:00 committed by Ciprian Pascu
parent 8007bb1f5a
commit b7aaf621f5

View File

@ -79,8 +79,8 @@ public class LGWebOSHandlerFactory extends BaseThingHandlerFactory {
// reduce timeout from default 15sec
this.webSocketClient.setConnectTimeout(1000);
// channel and app listing are json docs up to 4MB
this.webSocketClient.getPolicy().setMaxTextMessageSize(4 * 1024 * 1024);
// channel and app listing are json docs up to 5MB
this.webSocketClient.getPolicy().setMaxTextMessageSize(5 * 1024 * 1024);
// since this is not using openHAB's shared web socket client we need to start and stop
try {