Skip to content

Commit ddfe76b

Browse files
Increase websocket message size
The message size is quite small for streaming large amounts of text. This change increases it to 1 MB. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
1 parent c1c4594 commit ddfe76b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/websocket/reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const (
2424
pingPeriod = (pongWait * 9) / 10
2525

2626
// Maximum message size allowed from peer.
27-
maxMessageSize = 16384 // 16 KB
27+
maxMessageSize = 1048576 // 1 MB
2828
)
2929

3030
// MessageHandler is a function that processes a message received from a websocket connection.

0 commit comments

Comments
 (0)