summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-03-06 00:19:02 +0100
committerRory& <root@rory.gay>2026-03-06 00:19:02 +0100
commitb5c376881d4a72586a8a2da5bed13af064f29be7 (patch)
treecc24551af1e0bcea390fabf1e59c555424546c20
parentnix/cdn work (diff)
downloadserver-ts-b5c376881d4a72586a8a2da5bed13af064f29be7.tar.xz
Inline pointless const for session_id
-rw-r--r--src/gateway/events/Connection.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gateway/events/Connection.ts b/src/gateway/events/Connection.ts

index 8e16ee46..06ab9e5a 100644 --- a/src/gateway/events/Connection.ts +++ b/src/gateway/events/Connection.ts
@@ -28,7 +28,6 @@ import { Message } from "./Message"; import { Deflate, Inflate } from "fast-zlib"; import { URL } from "url"; import { Config, ErlpackType } from "@spacebar/util"; -import zlib from "node:zlib"; import { Decoder, Encoder } from "@toondepauw/node-zstd"; let erlpack: ErlpackType | null = null; @@ -75,8 +74,7 @@ export async function Connection(this: WS.Server, socket: WebSocket, request: In } //Create session ID when the connection is opened. This allows gateway dump to group the initial websocket messages with the rest of the conversation. - const session_id = "TEMP_" + genSessionId(); - socket.session_id = session_id; //Set the session of the WebSocket object + socket.session_id = "TEMP_" + genSessionId(); //Set the session of the WebSocket object try { // @ts-ignore