Skip to content

Commit 196df4f

Browse files
remove websocket partial auth experiment for now
1 parent 0bacf8a commit 196df4f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/chat-api/events/connectionEvents.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { isExperimentEnabled } from "@/common/experiments";
2323
import { decompressObject } from "@/common/zstd";
2424
import { log } from "@/common/logger";
2525

26-
const partial = isExperimentEnabled("WEBSOCKET_PARTIAL_AUTH")();
26+
// const partial = isExperimentEnabled("WEBSOCKET_PARTIAL_AUTH")();
2727
const zstd = isExperimentEnabled("WEBSOCKET_ZSTD")();
2828

2929
export const onConnect = (socket: Socket, token?: string) => {
@@ -35,7 +35,7 @@ export const onConnect = (socket: Socket, token?: string) => {
3535
});
3636
socket.emit(ClientEvents.AUTHENTICATE, {
3737
token,
38-
...(partial ? { partial: true } : {}),
38+
// ...(partial ? { partial: true } : {}),
3939
...(zstd ? { compression: "zstd" } : {})
4040
});
4141
};

src/common/experiments.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ export interface Experiment {
1111
}
1212

1313
export const Experiments = [
14-
{
15-
id: "WEBSOCKET_PARTIAL_AUTH",
16-
name: "WebSocket Partial Authentication",
17-
description:
18-
"VERY BROKEN. Don't send all auth data when authenticating. This will be used in the future to speed up authentication, hopefully."
19-
},
14+
// {
15+
// id: "WEBSOCKET_PARTIAL_AUTH",
16+
// name: "WebSocket Partial Authentication",
17+
// description:
18+
// "VERY BROKEN. Don't send all auth data when authenticating. This will be used in the future to speed up authentication, hopefully."
19+
// },
2020
{
2121
id: "WEBSOCKET_ZSTD",
2222
name: "WebSocket Zstandard Compression",

0 commit comments

Comments
 (0)