Skip to main content
Socket.prototype.remoteFamily - net - Node documentation
property Socket.prototype.remoteFamily

Usage in Deno

import { Socket } from "node:net";

The string representation of the remote IP family. 'IPv4' or 'IPv6'. Value may be undefined if the socket is destroyed (for example, if the client disconnected).

Type

string | undefined