Skip to main content
Module

x/mysql2/deps.ts>Socket#ref

MySQL client for Deno with focus on performance. Supports prepared statements, non-utf8 encodings, binary log protocol, compression much more
Latest
method Socket.prototype.ref
import { Socket } from "https://deno.land/x/mysql2@v1.0.6/deps.ts";

Opposite of unref(), calling ref() on a previously unrefed socket will_not_ let the program exit if it's the only socket left (the default behavior). If the socket is refed calling ref again will have no effect.

Returns

this

The socket itself.