(err: NodeJS.ErrnoException)
| 45 | |
| 46 | const bindError = await new Promise<NodeJS.ErrnoException | null>((settle) => { |
| 47 | const handleError = (err: NodeJS.ErrnoException): void => settle(err); |
| 48 | probe.once("error", handleError); |
| 49 | probe.listen({ port, host }, () => { |
| 50 | probe.removeListener("error", handleError); |