SDK Integration
Steps to integrate using the A...
Initialise the SDK
1 min
now that you have imported the sdk into your working directory, add the following code to initialise the autoscriber javascript sdk connectionconfig can be directly assigned to the response you get from the /scribe /scribe api endpoint //callback function that will be used to listen to state updates function mycallback(state statetype) void { // state can be saved here every time its updated } let response connectionconfig = await docreatescribeapicall(); // response from /scribe api call can be injected into config directly // initialize the sdk with required configs let scribe = new scribe(response, mycallback); // connect the sdk to server await scribe connect() then(async (connection) => { // sdk successfully connected, proceed with next steps });