(path: string)
| 2878 | } |
| 2879 | |
| 2880 | function openHalfOpenSocket(path: string): Promise<Socket> { |
| 2881 | return new Promise((resolve, reject) => { |
| 2882 | const socket = new Socket({ allowHalfOpen: true }); |
| 2883 | socket.once('connect', () => resolve(socket)); |
| 2884 | socket.once('error', reject); |
| 2885 | socket.connect(path); |
| 2886 | }); |
| 2887 | } |
| 2888 | |
| 2889 | async function openNonReadingStatusSocket(path: string): Promise<Socket> { |
| 2890 | const socket = new Socket(); |
no test coverage detected