Merge pull request #2158 from lightpanda-io/websocket_tweaks

WS.close returns DOMException
This commit is contained in:
Karl Seguin
2026-04-15 07:08:37 +08:00
committed by GitHub
4 changed files with 63 additions and 36 deletions

View File

@@ -130,7 +130,7 @@ pub fn httpMaxResponseSize(self: *const Config) ?usize {
pub fn wsMaxConcurrent(self: *const Config) u8 {
return switch (self.mode) {
inline .serve, .fetch, .mcp => |opts| opts.common.ws_max_concurrent orelse 8,
inline .serve, .fetch, .mcp => |opts| opts.common.ws_max_concurrent orelse 64,
else => unreachable,
};
}