Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The SDK supports several lifecycle callbacks to handle different events:
callbacks: { onConnected: (api) => { console.log('Session connected'); // api object provides additional methods (implementation pending) } }
callbacks: { onDisconnected: () => { console.log('Session disconnected'); // Handle disconnection logic } }
callbacks: { onError: (error) => { console.error('Proctoring error:', error); // Handle error logic } }
const config = { projectSecret: 'your-project-secret', candidate: { externalId: 'candidate-123' }, workflow_step: { proctoringType: 'remote_invigilation' }, callbacks: { onConnected: (api) => { console.log('✅ Proctoring session started'); // Show success message to user document.getElementById('status').textContent = 'Proctoring Active'; }, onDisconnected: () => { console.log('❌ Proctoring session ended'); // Update UI to reflect disconnected state document.getElementById('status').textContent = 'Proctoring Inactive'; }, onError: (error) => { console.error('🚨 Proctoring error:', error); // Show error message to user alert('Proctoring error: ' + error.message); } } };
Was this page helpful?