diff --git a/src/connection.ts b/src/connection.ts index 5b7eeab..84b34aa 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -33,7 +33,7 @@ export class ConnectionManager { private static async onConnection(socket: WebSocket, req: IncomingMessage) { Logging.log("New Connection:"); - const sendError = (error: string) => socket.send(JSON.stringify({ ns: "error_msg", data: { error } })); + const sendError = (error: string) => socket.send(JSON.stringify({ ns: "error_msg", data: error })); const session = new Session();