AvanzaCast/e2e/check-browserless-conn.js
Cesar Mendivil 8b458a3ddf feat: add initial LiveKit Meet integration with utility scripts, configs, and core components
- Add Next.js app structure with base configs, linting, and formatting
- Implement LiveKit Meet page, types, and utility functions
- Add Docker, Compose, and deployment scripts for backend and token server
- Provide E2E and smoke test scaffolding with Puppeteer and Playwright helpers
- Include CSS modules and global styles for UI
- Add postMessage and studio integration utilities
- Update package.json with dependencies and scripts for development and testing
2025-11-20 12:50:38 -07:00

19 lines
690 B
JavaScript

// quick connectivity check to browserless WS
const puppeteer = require('puppeteer-core');
(async ()=>{
const ws = process.env.BROWSERLESS_WS;
if(!ws){ console.error('BROWSERLESS_WS required'); process.exit(2); }
console.log('Trying to connect to', ws);
try{
const b = await puppeteer.connect({ browserWSEndpoint: ws, ignoreHTTPSErrors: true, defaultViewport: { width: 800, height: 600 } });
console.log('Connected!');
try{ await b.version().then(v=>console.log('Browser version:', v)); }catch(e){}
await b.disconnect();
process.exit(0);
}catch(err){
console.error('Connect error:', err && err.message ? err.message : err);
process.exit(1);
}
})();