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:The ID of the user to send a connection request to.
An optional message to include with the connection request.
Returns
The ID of the newly created connection record.
The status of the connection, e.g.
"pending".ISO timestamp when the request was created.
Related
- useConnectionManager — handles this with state tracking
- useAcceptConnection — for the recipient to accept

