-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration for WebSocket MaxFrameSize and MaxMessageSize
- Loading branch information
Domenico Briganti
committed
Sep 22, 2024
1 parent
2444f11
commit cc761d5
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/WebsocketServerConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package io.quarkus.vertx.http.runtime; | ||
|
||
import java.util.Optional; | ||
|
||
import io.quarkus.runtime.annotations.ConfigGroup; | ||
import io.quarkus.runtime.annotations.ConfigItem; | ||
|
||
/** | ||
* Configure the Vert.X HTTP Server for WebSocker Server connection. | ||
*/ | ||
@ConfigGroup | ||
public class WebsocketServerConfig { | ||
|
||
/** | ||
* The maximum amount of data that can be sent in a single frame. | ||
* | ||
* Messages larger than this must be broken up into continuation frames. | ||
* | ||
* Default 65536 (from HttpServerOptions of Vert.X HttpServerOptions) | ||
*/ | ||
@ConfigItem | ||
public Optional<Integer> maxFrameSize; | ||
|
||
/** | ||
* The maximum WebSocket message size. | ||
* | ||
* Default 262144 (from HttpServerOptions of Vert.X HttpServerOptions) | ||
*/ | ||
@ConfigItem | ||
public Optional<Integer> maxMessageSize; | ||
|
||
} |