Listing Conversations
useConversations fetches the authenticated user’s conversation list with cursor-based pagination. The list is sorted by most recent activity.
types array:
ConversationPreview — a Conversation extended with unreadCount and a truncated lastMessage.
See useConversations for the full API.
Creating a Direct Conversation
UseuseCreateDirectConversation to start a 1:1 conversation with another user. If a direct conversation between the two users already exists, the server returns the existing one.
useCreateDirectConversation.
Creating a Group Conversation
Group conversations are created viauseConversations, which exposes a createGroup function:
Accessing a Single Conversation
useConversation fetches full details for one conversation and provides update and deleteConversation actions:
conversation:updated socket events keep it current automatically.
See useConversation.
Managing Members
useConversationMembers loads the member list and exposes add, remove, leave, and role-change actions:
useConversationMembers.
Space Conversations
Every Space has a single associated conversation. UseuseFetchSpaceConversation to retrieve it:
useFetchSpaceConversation.
Next Steps
Messages
Send and receive messages in a conversation
Real-time
Typing indicators, unread counts, read receipts

