JavaScript / Web
JavaScript / Web SDK
Browser-native JavaScript SDK for web apps and games. Crystal-clear voice with ultra-low latency using WebSockets and AudioWorklets.
Installation
npm / script tag
# npm
npm install @cloudfort/callum-voice
# Or via script tag
<script src="voice-chat-sdk.js"></script>
Quick Start
voice-chat.js
const client = new VoiceChatSDK({
server: 'callem.cloudfort.ir',
apiKey: 'vc_live_YOUR_API_KEY',
peerId: 'user-123'
});
// Connect and join a voice room
client.on('connected', () => client.joinRoom('general'));
client.connect();
✓ Latency: 5ms | Codec: Opus HD
Features
Zero Dependencies
Pure browser APIs — WebSockets, AudioWorklets, Web Audio.
TypeScript Types
Ships with full .d.ts definitions for typed integration.
Auto Reconnect
Built-in reconnection with room and mic state restore.
Any Framework
Works with React, Vue, Angular, Svelte, or vanilla JS.
Ready to get started?
Get your free API key and start building with the JavaScript / Web SDK today.