From 65d17109029899af876de7a68cc4bd45423e7ae2 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Fri, 11 Oct 2019 16:13:28 +0200 Subject: [PATCH] Changing error behavior --- src/connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();