Skip to main content
Version: v0.16

Chat

Chat Room View

The Chat module provides real-time messaging capabilities via WebSockets.

Features

  • Chat Rooms - Create and manage conversation spaces
  • Real-time Messages - Instant message delivery via WebSockets
  • Message Status - Track read/unread status
  • Message Editing - Allow users to edit sent messages
  • Message Deletion - Allow users to delete messages

Dependencies

ModuleRequiredPurpose
AuthenticationYesUser identity

Minimum Configuration

All features enabled by default. Optional configuration available.

Environment Variables

NameRequiredDescriptionExample
CONDUIT_SERVERYesConduit Core address0.0.0.0:55152
SERVICE_URLNoService address0.0.0.0:56154
GRPC_PORTNogRPC server port56154
GRPC_KEYNogRPC signed request protectionsomeSecret

Quick Start

# Create a chat room (as authenticated user)
curl -X POST 'http://localhost:3000/chat/rooms' \
-H 'Authorization: Bearer USER_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"roomName": "General",
"users": ["user2Id", "user3Id"]
}'

Next Steps