Skip to main content
Module

x/kafkagosaur/deps.ts>Socket#ref

Kafka client for Deno binding to kafka-go using WebAssembly
Latest
method Socket.prototype.ref
import { Socket } from "https://deno.land/x/kafkagosaur@v0.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.