mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
adjust compression fallback
This commit is contained in:
parent
aa6bc9c9d0
commit
c08c8502e3
2 changed files with 2 additions and 2 deletions
|
@ -404,7 +404,7 @@ export function loadConfig(): Config {
|
|||
preSave: config.activityLogging?.preSave ?? false,
|
||||
maxAge: config.activityLogging?.maxAge ?? (1000 * 60 * 60 * 24 * 30),
|
||||
},
|
||||
websocketCompression: config.websocketCompression,
|
||||
websocketCompression: config.websocketCompression ?? false,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ export class StreamingApiServerService {
|
|||
public attach(server: http.Server): void {
|
||||
this.#wss = new WebSocket.WebSocketServer({
|
||||
noServer: true,
|
||||
perMessageDeflate: this.config.websocketCompression ?? false,
|
||||
perMessageDeflate: this.config.websocketCompression,
|
||||
});
|
||||
|
||||
server.on('upgrade', async (request, socket, head) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue