Essential Communication: Text messages form the foundation of chat communication, enabling users to send up to 10,000 characters of rich text content with support for mentions, tags, metadata, and real-time delivery across all platforms.
Text Messaging Overview
Text messages provide the core communication functionality in social.plus Chat, supporting plain text, rich formatting, and advanced features like mentions and threading.Rich Text Support
Flexible content formatting
- Up to 10,000 characters per message
- Unicode and emoji support
- Mention functionality
- Custom metadata attachment
Real-Time Delivery
Instant communication
- Immediate local display
- Background synchronization
- Delivery status tracking
- Cross-platform compatibility
Implementation Guide
Simple text message sendingSend plain text messages with essential parameters for immediate communication.
Required Parameters
Parameter | Type | Description |
---|---|---|
text | String | The text content to send (max 10,000 characters) |
subChannelId | String | Identifier for the subchannel where the message will be sent |
Optional Parameters
Parameter | Type | Description |
---|---|---|
tags | Array<String> | Arbitrary strings for message categorization and querying |
metadata | Object | Additional custom properties for extended functionality |
parentId | String | Parent message ID for creating threaded replies |
Code Examples
Character Limit: Text messages are limited to 10,000 characters. Messages exceeding this limit will return an error and will not be sent.
Text Message Features
Message Formatting & Content
Message Formatting & Content
Rich text capabilities and content handlingCharacter Support
- Unicode Support: Full international character support including emojis
- Special Characters: Support for symbols, mathematical notation, and special formatting
- Line Breaks: Proper handling of multiline text content
- Whitespace: Preserved spacing and formatting
- Length Limits: 10,000 character maximum per message
- Content Filtering: Automatic screening for prohibited content
- Encoding: UTF-8 encoding for universal compatibility
- Sanitization: Protection against malicious content injection
Example: Content Validation
Tags & Categorization
Tags & Categorization
Metadata & Custom Properties
Metadata & Custom Properties
Extended functionality through custom dataMetadata ApplicationsMetadata Best Practices
- Message Context: Store additional information about message purpose
- Workflow Integration: Connect messages to external systems and processes
- Analytics Tracking: Capture data for usage analytics and insights
- Custom Features: Enable application-specific functionality
Common Metadata Patterns
- Keep metadata focused and purposeful
- Use consistent schema across your application
- Consider metadata size impact on message payload
- Implement metadata validation for data integrity
Performance & Optimization
Performance & Optimization
Efficient text message handlingMessage Composition
- Draft Management: Save and restore message drafts locally
- Auto-Save: Implement periodic saving for longer messages
- Validation: Perform client-side validation before sending
- Compression: Consider text compression for very long messages
- Batching: Group multiple messages when appropriate
- Retry Logic: Implement smart retry mechanisms for failed sends
- Offline Queuing: Queue messages when connection is unavailable
- Sync Status: Provide clear feedback on message delivery status
- Message Caching: Implement efficient caching strategies
- History Limits: Manage memory usage with message history limits
- Cleanup: Remove old messages from local storage periodically
- Lazy Loading: Load message content on demand for better performance
Example: Draft Management
Related Features
Send a Message
Message delivery
Understanding the complete message sending process
Image Messages
Visual content
Send images and visual media content
Message Management
Content control
Edit, delete, and moderate message content
Implementation Strategy: Start with basic text messaging, then progressively add features like tags for organization, metadata for custom functionality, and threading for organized conversations. Always validate content length and implement proper error handling.