Inline pointless const for session_id

This commit is contained in:
Rory&
2026-03-06 00:19:02 +01:00
parent 829ada2607
commit b5c376881d

View File

@@ -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