Gio.Socket.prototype.get_family

function get_family(): Gio.SocketFamily {
    // Gjs wrapper for g_socket_get_family()
}
  

Gets the socket family of the socket.

Since 2.22

Returns

a Gio.SocketFamily