Commit bffc62f9a50d797aa095d5542ea7bf356d4d8af5

Authored by Eric Fernandez
1 parent c8ca8e879c
Exists in master

console.log

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
webSocketServer/index.js
... ... @@ -85,6 +85,8 @@ module.exports = function() {
85 85  
86 86 if (!client) {
87 87 reject('No se encuentra el webSocket client');
  88 + console.log('No se encuentra el webSocket client');
  89 + return;
88 90 }
89 91  
90 92 var idSolicitud = Math.round(Math.random() * 1000);
... ... @@ -96,7 +98,7 @@ module.exports = function() {
96 98  
97 99 console.log(`enviando comprobante a cliente`)
98 100 console.log(client);
99   - console.log(cuerpo);
  101 + console.log(cuerpo.body);
100 102  
101 103 client.ws.send(JSON.stringify(enviar));
102 104