Merge Request #27
← To merge requests
efernandez/websocketho:
master
→
master
Commits (1)
Showing
1 changed file
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 |