diff --git a/src/socket/socket.service.ts b/src/socket/socket.service.ts index bde948d..c1975b4 100644 --- a/src/socket/socket.service.ts +++ b/src/socket/socket.service.ts @@ -21,7 +21,7 @@ export class SocketService { const connectedClients = server.sockets.sockets; if (connectedClients.size === 0) { - resolveHandlerSend({ status: 404, message: "Failed to find the clients!" }); + resolveHandlerSend({ status: 1, message: "Failed to find the clients!" }); return; } @@ -42,11 +42,11 @@ export class SocketService { } if (!sent) { - resolveHandlerSend({ status: 404, message: "Failed to send to the clients!" }); + resolveHandlerSend({ status: 2, message: "Failed to send to the clients!" }); return; } - - resolveHandlerSend({ status: 200, message: "Success in sending to the clients!" }); + + resolveHandlerSend({ status: 0, message: "Success in sending to the clients!" }); }); }