(message)
| 45 | } |
| 46 | |
| 47 | function isResponse(message) { |
| 48 | return ( |
| 49 | typeof message.id === 'object' && |
| 50 | typeof message.id.requestId !== undefined && |
| 51 | typeof message.id.clientId === 'string' && ( |
| 52 | message.result !== undefined || |
| 53 | message.error !== undefined |
| 54 | )); |
| 55 | } |
| 56 | |
| 57 | function attachToServer(server, path) { |
| 58 | const wss = new WebSocketServer({ |
no outgoing calls
no test coverage detected
searching dependent graphs…