Vonage Voice SDK
The Client SDK is intended to provide a ready solution for developers to build Programmable Conversation applications across multiple Channels including: Messages, Voice, SIP, websockets, and App.
Installation
The SDK can be installed using the npm install command
npm i @vonage/client-sdk
SDK setup
To use the client SDK in a Webpack or Vite project:
import './App.css';
import VoiceClient, { ClientConfig, ConfigRegion } from '@vonage/client-sdk';
const client = new VoiceClient();
// Config is optional but recomended, default region is US
const config = new ClientConfig(ConfigRegion.US)
client.setConfig(config)
function App() {
const createSession = async () => {
const token = "my-token"
await client.createSession(token)
}
return (
<button onClick={createSession}> create session </button>
);
}
export default App;
Documentation and examples
Visit [vonage website] (https://developer.vonage.com/tools)
License
Copyright (c) 2023 Vonage, Inc. All rights reserved. Licensed only under the Vonage Client SDK License Agreement (the "License") located at LICENCE.
By downloading or otherwise using our software or services, you acknowledge that you have read, understand and agree to be bound by the Vonage Client SDK License Agreement and Privacy Policy.
You may not use, exercise any rights with respect to or exploit this SDK, or any modifications or derivative works thereof, except in accordance with the License.