Changing error behavior
This commit is contained in:
parent
715b392629
commit
65d1710902
@ -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();
|
||||
|
Reference in New Issue
Block a user