OpenTok Node.js SDK reference
The OpenTok Node.js SDK includes the following classes:
| Class | Description |
|---|---|
| Archive | Do not call the new() constructor. To start recording an archive, call the OpenTok.startArchive() method. |
| Broadcast | Do not call the new() constructor. To start a live streaming broadcast, call the OpenTok.startBroadcast() method. |
| OpenTok | To create a new OpenTok object, call the OpenTok constructor with your OpenTok API key and the API secret for your Vonage Video API account . Do not publicly share your API secret. You will use it with the OpenTok constructor (only on your web server) to create OpenTok sessions. |
| Render | Use the OpenTok.js library to build Vonage Video API-powered WebRTC video, voice and messaging communications apps on iOS devices. |
| Session | Use the OpenTok.js library to build Vonage Video API-powered WebRTC video, voice and messaging communications apps on iOS devices. |
| SipInterconnect | Do not call the new() constructor. To start a SIP call, call the OpenTok.dial() method. |
| Stream | Use the OpenTok.js library to build Vonage Video API-powered WebRTC video, voice and messaging communications apps on iOS devices. |