(dest, message)
| 18 | var debuggerSocket, clientSocket; |
| 19 | |
| 20 | function send(dest, message) { |
| 21 | if (!dest) { |
| 22 | return; |
| 23 | } |
| 24 | |
| 25 | try { |
| 26 | dest.send(message); |
| 27 | } catch(e) { |
| 28 | console.warn(e); |
| 29 | // Sometimes this call throws 'not opened' |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | wss.on('connection', function(ws) { |
| 34 | const {url} = ws.upgradeReq; |
no test coverage detected
searching dependent graphs…