Introduction
The Vocantly JavaScript SDK is a headless SDK for integrating real-time chat, messaging, presence, and support features into your applications.Installation
npm install @vocantly/sdk@beta
Quick Start
Core Features
SDK Architecture
Configuration
Minimum:wsUrl + token (from your backend). Inbox/history: add apiUrl — the same token is used as Bearer for list() and fetchMessages().
API Reference
Vocantly Client
Conversations
Conversation Instance
Support Sessions
Message Lifecycle
- Send Message → Optimistic message created instantly
- Server Confirms → Message reconciled with server data
- Delivered → Delivery receipt received
- Read → Read receipt received
Error Handling
TypeScript Support
The SDK is written in TypeScript and includes full type definitions:Next Steps
Implementation Guide
Backend + frontend integration (recommended)
Installation
Installation and setup
Authentication
How to get and use the SDK token
Conversations
Join, leave, send and receive
Inbox & history
List conversations and message history
Messaging
Messages in detail