[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>
This commit is contained in:
lolodomo 2024-02-17 11:51:24 +01:00 committed by GitHub
parent 2fb3988dcd
commit 5f805755fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 {