{"library":"nexmo-client","title":"Vonage Client SDK (Legacy Nexmo Client)","description":"The `nexmo-client` package provides a JavaScript SDK for integrating programmable conversation features, including in-app messaging and voice, into web and Node.js applications. While the package name is `nexmo-client`, it is functionally the predecessor to the Vonage Client SDK. The current stable version, 9.6.1, was last published over a year ago (as of 2026), indicating it is in a deprecated or maintenance state, with active development having shifted to the official `@vonage/client-sdk` package. It offers capabilities like offline message synchronization, push notifications, rich text and image support for messaging, and advanced in-app voice features such as group calling and user controls. Its primary differentiators lie in enabling robust real-time communication within applications through the Vonage API platform.","language":"javascript","status":"deprecated","last_verified":"Tue Apr 21","install":{"commands":["npm install nexmo-client"],"cli":null},"imports":["import NexmoClient from 'nexmo-client';","const NexmoClient = require('nexmo-client');","<!-- In HTML --> <script src=\"node_modules/nexmo-client/dist/nexmoClient.min.js\"></script> // Then access `NexmoClient` directly"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import NexmoClient from 'nexmo-client';\n\n// Obtain a JWT from your backend for client authentication.\n// In a production environment, this should never be hardcoded.\nconst JWT = process.env.VONAGE_CLIENT_SDK_JWT ?? 'YOUR_GENERATED_JWT_HERE';\n\nasync function initializeAndConnect() {\n  if (!JWT || JWT === 'YOUR_GENERATED_JWT_HERE') {\n    console.error('Please provide a valid JWT for authentication.');\n    return;\n  }\n\n  try {\n    const client = new NexmoClient({ debug: true });\n\n    client.on('connection:status', (status) => {\n      console.log(`Connection status changed: ${status}`);\n      if (status === 'disconnected') {\n        console.warn('Client disconnected. Check network or JWT validity.');\n      }\n    });\n\n    console.log('Attempting to log in with JWT...');\n    await client.login(JWT);\n    console.log('Successfully logged in to Vonage client SDK.');\n\n    // You can now access client features, e.g., get conversations, make calls.\n    const conversations = await client.getConversations();\n    console.log(`Found ${conversations.items.length} conversations.`);\n\n  } catch (error) {\n    console.error('Failed to initialize or login:', error.message, error);\n  }\n}\n\ninitializeAndConnect();","lang":"typescript","description":"This quickstart demonstrates how to install the `nexmo-client` package, import the `NexmoClient` class, and perform a basic login using a JWT. It includes error handling and logs connection status, fetching existing conversations as an example of post-login interaction.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}