```typescript
import { Socket } from "node:node__net.d.ts";
```
Socket.prototype.ref(): this
Opposite of `unref()`, calling `ref()` on a previously `unref`ed socket will _not_ let the program exit if it's the only socket left (the default behavior).
If the socket is `ref`ed calling `ref` again will have no effect.