Skip to main content

Overview

Returns a function that fetches the total number of accepted connections for any user, identified by userId. This is a public endpoint — authentication is not required.

Usage Example

Parameters

The hook returns a function. That function accepts:
string
required
The ID of the user whose connection count to fetch.

Returns

number
Total number of accepted connections for the specified user.