Changing error behavior

This commit is contained in:
Fabian Stamm 2019-10-11 16:13:28 +02:00
parent 715b392629
commit 65d1710902

View File

@ -33,7 +33,7 @@ export class ConnectionManager {
private static async onConnection(socket: WebSocket, req: IncomingMessage) { private static async onConnection(socket: WebSocket, req: IncomingMessage) {
Logging.log("New Connection:"); 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(); const session = new Session();