Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Set the maximum message size of WebSocket broadcast to 128 MiB (#10221)

Yingyi / 颖逸5f95df447791
diff --git a/kernel/api/broadcast.go b/kernel/api/broadcast.go
index 15931d2cfc..3a9ddd147e 100644
--- a/kernel/api/broadcast.go
+++ b/kernel/api/broadcast.go
@@ -61,6 +61,7 @@ func broadcast(c *gin.Context) {
} else {
// channel not found, create a new one
broadcastChannel := melody.New()
+ broadcastChannel.Config.MaxMessageSize = 1024 * 1024 * 128 // 128 MiB
BroadcastChannels.Store(channel, broadcastChannel)
subscribe(c, broadcastChannel, channel)