daily-opentok-node
This library is a drop-in replacement for the opentok npm package. This allows a user to create rooms in Daily using the same API. Use this as a first step towards migrating from OpenTok to Daily.
Install via npm:
npm install daily-opentok-node
When requiring the library in your project, change the following line:
const OpenTok = require("opentok");
to this:
const OpenTok = require("daily-opentok-node");
Also when creating a new OT
object, replace any occurrences of the following code:
const OT = new OpenTok("openTokAPIKey", "openTokAPISecret");
with this:
const OT = new OpenTok("dailyApiKey");
await OT.getDomainID();
getDomainID()
.