Skip to content

Commit

Permalink
ingrease message size
Browse files Browse the repository at this point in the history
  • Loading branch information
FKD13 committed Apr 20, 2024
1 parent 3ee2e92 commit aa45473
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public WebsocketClient(URI endpointURI) throws RuntimeException {
public void listen() throws RuntimeException {
try {
WebSocketContainer container = ContainerProvider.getWebSocketContainer();
container.setDefaultMaxTextMessageBufferSize(100 * 1048576); // 100Mb
container.connectToServer(this, endpoint);
} catch (Exception e) {
throw new RuntimeException(e);
Expand Down

0 comments on commit aa45473

Please sign in to comment.