()
| 2392 | // After the frame is written the server processes the request and closes |
| 2393 | // the connection, which lands in the `close` handler. |
| 2394 | const send = (): void => { |
| 2395 | socket.write(frame) |
| 2396 | } |
| 2397 | const begin = (): void => { |
| 2398 | if (config.ssl === false) return send() |
| 2399 | socket.once("data", (chunk: Uint8Array) => { |