mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 Set the maximum message size of WebSocket broadcast to 128 MiB (#10221)
This commit is contained in:
parent
7b4ead5e8a
commit
5f95df4477
1 changed files with 1 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ func broadcast(c *gin.Context) {
|
||||||
} else {
|
} else {
|
||||||
// channel not found, create a new one
|
// channel not found, create a new one
|
||||||
broadcastChannel := melody.New()
|
broadcastChannel := melody.New()
|
||||||
|
broadcastChannel.Config.MaxMessageSize = 1024 * 1024 * 128 // 128 MiB
|
||||||
BroadcastChannels.Store(channel, broadcastChannel)
|
BroadcastChannels.Store(channel, broadcastChannel)
|
||||||
subscribe(c, broadcastChannel, channel)
|
subscribe(c, broadcastChannel, channel)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue