Voice & Text Chat for WebSDK
Integrate real-time voice and text chat into your application using the StreamPixel SDK.
1. Installation
import { StreamPixelVoiceChat } from 'streampixelsdk';2. Initialization
const chatSdk = new StreamPixelVoiceChat({
roomName: 'my-room', // Unique identifier for the chat room
userName: 'Alice', // Display name for the user
voiceChat: true, // Enable voice chat
avatar: 'https://.../img.png', // Optional URL for user avatar
micStart: false // If true, mic is unmuted on join
});2.1 Configuration Options
3. Connection Lifecycle
4. Text Messaging
4.1 Send a Message
4.2 Receive Messages
4.3 Participant Updates
5.2 Mute/Unmute All Remote
5.3 Mute/Unmute Individual Participant
6. Leaving and Cleanup
6.1 Leave the Room
6.2 Force Disconnect
Last updated