Skip to main content

Overview

Returns a function that sends a connection request to another user. An optional message can be included with the request. The current user must be authenticated.

Usage Example

Parameters

The hook returns a function. That function accepts:
string
required
The ID of the user to send a connection request to.
string
An optional message to include with the connection request.

Returns

string
The ID of the newly created connection record.
string
The status of the connection, e.g. "pending".
string | undefined
ISO timestamp when the request was created.